]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: adc: vf610: Drop -ENOMEM error message
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 13 Jul 2025 15:59:56 +0000 (17:59 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 14 Jul 2025 18:20:54 +0000 (19:20 +0100)
Core already prints detailed error messages on ENOMEM errors and drivers
should avoid repeating it.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250713-iio-clk-get-enabled-v1-2-70abc1f9ce6c@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/vf610_dac.c

index b30ff7bb44002d4f02c5eb4ac7633774d16b7813..b7ee16ab4edd596564580e7fc9cfb556b2a0ba1d 100644 (file)
@@ -178,10 +178,8 @@ static int vf610_dac_probe(struct platform_device *pdev)
 
        indio_dev = devm_iio_device_alloc(&pdev->dev,
                                        sizeof(struct vf610_dac));
-       if (!indio_dev) {
-               dev_err(&pdev->dev, "Failed allocating iio device\n");
+       if (!indio_dev)
                return -ENOMEM;
-       }
 
        info = iio_priv(indio_dev);
        info->dev = &pdev->dev;