diff options
| author | Dixit Parmar <dixitparmar19@gmail.com> | 2025-08-22 09:19:55 +0530 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-08-25 12:36:29 +0100 |
| commit | 368e8718875f17ac38dc7e1019b170aaee703289 (patch) | |
| tree | 2ddf85ec88fbd9ce26c04e5ff33422e0d9d658d7 | |
| parent | bdba20f5e642046b84c288d89a9443b3139b7981 (diff) | |
| download | linux-368e8718875f17ac38dc7e1019b170aaee703289.tar.gz linux-368e8718875f17ac38dc7e1019b170aaee703289.zip | |
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>
| -rw-r--r-- | drivers/iio/potentiostat/lmp91000.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index 030498d0b763..eccc2a34358f 100644 --- a/drivers/iio/potentiostat/lmp91000.c +++ b/drivers/iio/potentiostat/lmp91000.c @@ -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); |
