summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure
diff options
context:
space:
mode:
authorDixit Parmar <dixitparmar19@gmail.com>2025-08-22 09:19:56 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-08-25 12:36:50 +0100
commitb5e04043b45067d3a5992588c862f62099afae75 (patch)
tree4b6dae3415f8d761e417ce069e95de271ad5d55e /drivers/iio/pressure
parent368e8718875f17ac38dc7e1019b170aaee703289 (diff)
downloadlinux-next-b5e04043b45067d3a5992588c862f62099afae75.tar.gz
linux-next-b5e04043b45067d3a5992588c862f62099afae75.zip
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>
Diffstat (limited to 'drivers/iio/pressure')
-rw-r--r--drivers/iio/pressure/dlhl60d.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/pressure/dlhl60d.c b/drivers/iio/pressure/dlhl60d.c
index 6a13cf2eaf50..8bad7162fec6 100644
--- a/drivers/iio/pressure/dlhl60d.c
+++ b/drivers/iio/pressure/dlhl60d.c
@@ -289,10 +289,8 @@ static int dlh_probe(struct i2c_client *client)
}
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st));
- if (!indio_dev) {
- dev_err(&client->dev, "failed to allocate iio device\n");
+ if (!indio_dev)
return -ENOMEM;
- }
i2c_set_clientdata(client, indio_dev);