Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: light: Drop unnecessary -ENOMEM messages

The drivers do not require their own error messages for error
-ENOMEM, memory allocation failures. So remove the dev_err()
messages from the probe().

Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
Link: https://patch.msgid.link/20250822-enomam_logs-v1-6-db87f2974552@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dixit Parmar and committed by
Jonathan Cameron
bdba20f5 fba366e6

+1 -3
+1 -3
drivers/iio/light/stk3310.c
··· 607 607 struct stk3310_data *data; 608 608 609 609 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data)); 610 - if (!indio_dev) { 611 - dev_err(&client->dev, "iio allocation failed!\n"); 610 + if (!indio_dev) 612 611 return -ENOMEM; 613 - } 614 612 615 613 data = iio_priv(indio_dev); 616 614 data->client = client;