]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 08:06:46 +0000 (16:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 08:40:13 +0000 (09:40 +0100)
commit3a4cdd1155de2c7d90a35d67b779774045e4cbb1
tree3c13f2526e5f497d150e2280dfc6e37ff5c59974
parent666a22bb31e48ec467b77ec61fe1630a18ea0c2d
iio: adc: Remove dev_err_probe() if error is -ENOMEM

The dev_err_probe() doesn't do anything when the error is '-ENOMEM'.
Therefore, remove the useless call to dev_err_probe(), and just return the
value instead.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> # meson_saradc
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250821080723.525379-3-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/hx711.c
drivers/iio/adc/imx93_adc.c
drivers/iio/adc/mcp3564.c
drivers/iio/adc/meson_saradc.c
drivers/iio/adc/rockchip_saradc.c
drivers/iio/adc/spear_adc.c
drivers/iio/adc/ti-ads1119.c
drivers/iio/adc/ti-ads7924.c
drivers/iio/adc/vf610_adc.c