]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ARM: OMAP2+: use IS_ERR_OR_NULL() helper
authorYang Xiuwei <yangxiuwei@kylinos.cn>
Sun, 17 Aug 2025 08:34:49 +0000 (16:34 +0800)
committerKevin Hilman <khilman@baylibre.com>
Fri, 5 Sep 2025 21:26:41 +0000 (14:26 -0700)
commit045e81d8d7e65baefbd4dea0503ca3330f93f3e6
treed66d19fb5aba314ffc33cda108c825047aeaa8cd
parent8a6506e1ba0d2b831729808d958aae77604f12f9
ARM: OMAP2+: use IS_ERR_OR_NULL() helper

Simplify error handling in OMAP powerdomain, voltage, and VP code by
replacing open-coded '!ptr || IS_ERR(ptr)' checks with the combined
IS_ERR_OR_NULL() helper.

This improves readability and consistency across
omap_set_pwrdm_state(), voltdm_get_voltage(), voltdm_scale(),
voltdm_reset(), and related functions.

No functional change intended.

Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Reviewed-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20250817083449.2249268-1-yangxiuwei2025@163.com
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/voltage.c
arch/arm/mach-omap2/vp.c