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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dixit Parmar and committed by
Jonathan Cameron
681386fe 1f6fcf7f

+1 -3
+1 -3
drivers/iio/temperature/mlx90632.c
··· 1178 1178 int ret; 1179 1179 1180 1180 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*mlx90632)); 1181 - if (!indio_dev) { 1182 - dev_err(&client->dev, "Failed to allocate device\n"); 1181 + if (!indio_dev) 1183 1182 return -ENOMEM; 1184 - } 1185 1183 1186 1184 regmap = devm_regmap_init_i2c(client, &mlx90632_regmap); 1187 1185 if (IS_ERR(regmap)) {