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>pull/1354/merge
parent
bdba20f5e6
commit
368e871887
|
|
@ -321,10 +321,8 @@ static int lmp91000_probe(struct i2c_client *client)
|
|||
data->trig = devm_iio_trigger_alloc(dev, "%s-mux%d",
|
||||
indio_dev->name,
|
||||
iio_device_id(indio_dev));
|
||||
if (!data->trig) {
|
||||
dev_err(dev, "cannot allocate iio trigger.\n");
|
||||
if (!data->trig)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
init_completion(&data->completion);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue