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:
parent
eeca066c9d
commit
fc3a804929
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue