aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/stm32-dfsdm-adc.c
diff options
context:
space:
mode:
authorDixit Parmar <dixitparmar19@gmail.com>2025-08-22 09:19:50 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-08-25 12:32:13 +0100
commitc7979dbdc7be870c15a050ab0c6f6646ded73967 (patch)
tree9390837cf39e3901fb7234217bad760169ab1e74 /drivers/iio/adc/stm32-dfsdm-adc.c
parentiio: accel: Drop unnecessary -ENOMEM messages (diff)
downloadlinux-c7979dbdc7be870c15a050ab0c6f6646ded73967.tar.gz
linux-c7979dbdc7be870c15a050ab0c6f6646ded73967.zip
iio: adc: 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-2-db87f2974552@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/stm32-dfsdm-adc.c')
-rw-r--r--drivers/iio/adc/stm32-dfsdm-adc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
index c2d21eecafe7..74b1b4dc6e81 100644
--- a/drivers/iio/adc/stm32-dfsdm-adc.c
+++ b/drivers/iio/adc/stm32-dfsdm-adc.c
@@ -1764,10 +1764,8 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
dev_data = of_device_get_match_data(dev);
iio = devm_iio_device_alloc(dev, sizeof(*adc));
- if (!iio) {
- dev_err(dev, "%s: Failed to allocate IIO\n", __func__);
+ if (!iio)
return -ENOMEM;
- }
adc = iio_priv(iio);
adc->dfsdm = dev_get_drvdata(dev->parent);