Skip to content

Commit a56e41a

Browse files
krzkjic23
authored andcommitted
iio: adc: vf610: Drop -ENOMEM error message
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>
1 parent 50467d8 commit a56e41a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/iio/dac/vf610_dac.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,8 @@ static int vf610_dac_probe(struct platform_device *pdev)
178178

179179
indio_dev = devm_iio_device_alloc(&pdev->dev,
180180
sizeof(struct vf610_dac));
181-
if (!indio_dev) {
182-
dev_err(&pdev->dev, "Failed allocating iio device\n");
181+
if (!indio_dev)
183182
return -ENOMEM;
184-
}
185183

186184
info = iio_priv(indio_dev);
187185
info->dev = &pdev->dev;

0 commit comments

Comments
 (0)