linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] iio: Remove dev_err_probe() if error is -ENOMEM
@ 2025-08-21  8:06 Xichao Zhao
  2025-08-21  8:06 ` [PATCH 2/7] iio: adc: " Xichao Zhao
  2025-08-21  8:13 ` [PATCH 0/7] iio: " Andy Shevchenko
  0 siblings, 2 replies; 8+ messages in thread
From: Xichao Zhao @ 2025-08-21  8:06 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
	Andreas Klinger, Haibo Chen, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Marius Cristea,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	Heiko Stuebner, Francesco Dolcini, João Paulo Gonçalves,
	Hugo Villeneuve, Gustavo Silva, Tomasz Duszynski, Jagath Jog J,
	Crt Mori, Xichao Zhao, Per-Daniel Olsson, Waqar Hameed, Yasin Lee,
	Julien Stephan, open list:IIO SUBSYSTEM AND DRIVERS, open list,
	open list:NXP i.MX 7D/6SX/6UL/93 AND VF610 ADC DRIVER,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	open list:ARM/Amlogic Meson SoC support,
	open list:ARM/Rockchip SoC support

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

Xichao Zhao (7):
  iio: accel: msa311: Remove dev_err_probe() if error is -ENOMEM
  iio: adc: Remove dev_err_probe() if error is -ENOMEM
  iio: chemical: Remove dev_err_probe() if error is -ENOMEM
  iio: imu: bmi323: Remove dev_err_probe() if error is -ENOMEM
  iio: light: Remove dev_err_probe() if error is -ENOMEM
  iio: proximity: Remove dev_err_probe() if error is -ENOMEM
  iio: temperature: mlx90635: Remove dev_err_probe() if error is -ENOMEM

 drivers/iio/accel/msa311.c           | 8 +++-----
 drivers/iio/adc/hx711.c              | 2 +-
 drivers/iio/adc/imx93_adc.c          | 3 +--
 drivers/iio/adc/mcp3564.c            | 2 +-
 drivers/iio/adc/meson_saradc.c       | 2 +-
 drivers/iio/adc/rockchip_saradc.c    | 3 +--
 drivers/iio/adc/spear_adc.c          | 3 +--
 drivers/iio/adc/ti-ads1119.c         | 6 ++----
 drivers/iio/adc/ti-ads7924.c         | 3 +--
 drivers/iio/adc/vf610_adc.c          | 2 +-
 drivers/iio/chemical/ens160_core.c   | 3 +--
 drivers/iio/chemical/scd30_core.c    | 2 +-
 drivers/iio/imu/bmi323/bmi323_core.c | 3 +--
 drivers/iio/light/opt4060.c          | 2 +-
 drivers/iio/light/veml6040.c         | 3 +--
 drivers/iio/proximity/d3323aa.c      | 3 +--
 drivers/iio/proximity/hx9023s.c      | 3 +--
 drivers/iio/proximity/irsd200.c      | 6 ++----
 drivers/iio/temperature/mlx90635.c   | 2 +-
 19 files changed, 23 insertions(+), 38 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-25  9:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  8:06 [PATCH 0/7] iio: Remove dev_err_probe() if error is -ENOMEM Xichao Zhao
2025-08-21  8:06 ` [PATCH 2/7] iio: adc: " Xichao Zhao
2025-08-21 20:31   ` Martin Blumenstingl
2025-08-25  8:36     ` Jonathan Cameron
2025-08-21  8:13 ` [PATCH 0/7] iio: " Andy Shevchenko
2025-08-21 11:50   ` Crt Mori
2025-08-21 12:47     ` Andy Shevchenko
2025-08-25  8:41   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).