Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c25531d authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jonathan Cameron
Browse files

iio: adc: rcar-gyroadc: Remove devm_iio_device_alloc() error printing



devm_iio_device_alloc() can only fail due to a memory or IDA allocation
failure.  Hence there is no need to print a message, as the memory
allocation or IIO core code already takes care of that.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent cf54f4dd
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -485,10 +485,8 @@ static int rcar_gyroadc_probe(struct platform_device *pdev)
	int ret;

	indio_dev = devm_iio_device_alloc(dev, sizeof(*priv));
	if (!indio_dev) {
		dev_err(dev, "Failed to allocate IIO device.\n");
	if (!indio_dev)
		return -ENOMEM;
	}

	priv = iio_priv(indio_dev);
	priv->dev = dev;