iio: health: 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-4-db87f2974552@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Dixit Parmar 2025-08-22 09:19:52 +05:30 committed by Jonathan Cameron
parent eeca066c9d
commit fc3a804929
2 changed files with 2 additions and 6 deletions

View File

@ -529,10 +529,8 @@ static int afe4403_probe(struct spi_device *spi)
"%s-dev%d",
indio_dev->name,
iio_device_id(indio_dev));
if (!afe->trig) {
dev_err(dev, "Unable to allocate IIO trigger\n");
if (!afe->trig)
return -ENOMEM;
}
iio_trigger_set_drvdata(afe->trig, indio_dev);

View File

@ -536,10 +536,8 @@ static int afe4404_probe(struct i2c_client *client)
"%s-dev%d",
indio_dev->name,
iio_device_id(indio_dev));
if (!afe->trig) {
dev_err(dev, "Unable to allocate IIO trigger\n");
if (!afe->trig)
return -ENOMEM;
}
iio_trigger_set_drvdata(afe->trig, indio_dev);