Commit 8c939402 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron

staging: iio: isl29028: remove out of memory log message

If the call to devm_iio_device_alloc() fails, then isl29028_probe()
logs a message saying that memory cannot be allocated. The user's system
most likely has larger issues at this point. This patch removes that
error message since the error code is passed on and the message is not
necessary.
Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 65ac716b
...@@ -488,10 +488,8 @@ static int isl29028_probe(struct i2c_client *client, ...@@ -488,10 +488,8 @@ static int isl29028_probe(struct i2c_client *client,
int ret; int ret;
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip)); indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*chip));
if (!indio_dev) { if (!indio_dev)
dev_err(&client->dev, "iio allocation fails\n");
return -ENOMEM; return -ENOMEM;
}
chip = iio_priv(indio_dev); chip = iio_priv(indio_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment