On Tue, Mar 10, 2026 at 12:49:22PM +0100, Philipp Hahn wrote:
> Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL
> check.
> 
> Semantich change: Previously the code only printed the warning on error,

Semantic ...

> but not when the pointer was NULL. Now the warning is printed in both
> cases!
> 
> Change found with coccinelle.
> 
> To: Michael Turquette <[email protected]>
> To: Stephen Boyd <[email protected]>
> To: Daniel Lezcano <[email protected]>
> To: Thomas Gleixner <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Signed-off-by: Philipp Hahn <[email protected]>

With the minor typo addressed:

Reviewed-by: Brian Masney <[email protected]>


Reply via email to