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

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

authored by

Dixit Parmar and committed by
Jonathan Cameron
fc3a8049 eeca066c

+2 -6
+1 -3
drivers/iio/health/afe4403.c
··· 529 529 "%s-dev%d", 530 530 indio_dev->name, 531 531 iio_device_id(indio_dev)); 532 - if (!afe->trig) { 533 - dev_err(dev, "Unable to allocate IIO trigger\n"); 532 + if (!afe->trig) 534 533 return -ENOMEM; 535 - } 536 534 537 535 iio_trigger_set_drvdata(afe->trig, indio_dev); 538 536
+1 -3
drivers/iio/health/afe4404.c
··· 536 536 "%s-dev%d", 537 537 indio_dev->name, 538 538 iio_device_id(indio_dev)); 539 - if (!afe->trig) { 540 - dev_err(dev, "Unable to allocate IIO trigger\n"); 539 + if (!afe->trig) 541 540 return -ENOMEM; 542 - } 543 541 544 542 iio_trigger_set_drvdata(afe->trig, indio_dev); 545 543