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

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

authored by

Dixit Parmar and committed by
Jonathan Cameron
368e8718 bdba20f5

+1 -3
+1 -3
drivers/iio/potentiostat/lmp91000.c
··· 321 321 data->trig = devm_iio_trigger_alloc(dev, "%s-mux%d", 322 322 indio_dev->name, 323 323 iio_device_id(indio_dev)); 324 - if (!data->trig) { 325 - dev_err(dev, "cannot allocate iio trigger.\n"); 324 + if (!data->trig) 326 325 return -ENOMEM; 327 - } 328 326 329 327 init_completion(&data->completion); 330 328