[PATCH] ARM: OMAP2+: use IS_ERR_OR_NULL() helper

Andreas Kemnade andreas at kemnade.info
Mon Aug 18 10:12:08 PDT 2025


Am Sun, 17 Aug 2025 16:34:49 +0800
schrieb Yang Xiuwei <yangxiuwei2025 at 163.com>:

> From: Yang Xiuwei <yangxiuwei at kylinos.cn>
> 
> 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 at kylinos.cn>

Reviewed-by: Andreas Kemnade <andreas at kemnade.info>



More information about the linux-arm-kernel mailing list