Commit a56e41a3 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Jonathan Cameron
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250713-iio-clk-get-enabled-v1-2-70abc1f9ce6c@linaro.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 50467d89
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;