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: pressure: 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-8-db87f2974552@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dixit Parmar and committed by
Jonathan Cameron
b5e04043 368e8718

+1 -3
+1 -3
drivers/iio/pressure/dlhl60d.c
··· 289 289 } 290 290 291 291 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); 292 - if (!indio_dev) { 293 - dev_err(&client->dev, "failed to allocate iio device\n"); 292 + if (!indio_dev) 294 293 return -ENOMEM; 295 - } 296 294 297 295 i2c_set_clientdata(client, indio_dev); 298 296