diff options
| author | Dixit Parmar <dixitparmar19@gmail.com> | 2025-08-22 09:19:58 +0530 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-08-25 12:37:34 +0100 |
| commit | 681386fe5365591d044fe03d7ae05e5419a78d83 (patch) | |
| tree | 88ca1aee8391b7409a7de0f73e44dd915f833e15 | |
| parent | 1f6fcf7fb4ca49c19960b9545f9cd352ac2b7a31 (diff) | |
| download | linux-681386fe5365591d044fe03d7ae05e5419a78d83.tar.gz linux-681386fe5365591d044fe03d7ae05e5419a78d83.zip | |
iio: temperature: 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-10-db87f2974552@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
| -rw-r--r-- | drivers/iio/temperature/mlx90632.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/mlx90632.c index ae4ea587e7f9..c4bf5dc2f266 100644 --- a/drivers/iio/temperature/mlx90632.c +++ b/drivers/iio/temperature/mlx90632.c @@ -1178,10 +1178,8 @@ static int mlx90632_probe(struct i2c_client *client) int ret; indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mlx90632)); - if (!indio_dev) { - dev_err(&client->dev, "Failed to allocate device\n"); + if (!indio_dev) return -ENOMEM; - } regmap = devm_regmap_init_i2c(client, &mlx90632_regmap); if (IS_ERR(regmap)) { |
