[PATCH 41/61] pinctrl: Prefer IS_ERR_OR_NULL over manual NULL check

Linus Walleij linusw at kernel.org
Wed Mar 11 02:32:12 PDT 2026


On Tue, Mar 10, 2026 at 12:55 PM Philipp Hahn <phahn-oss at avm.de> wrote:

> Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL
> check.
>
> Change generated with coccinelle.
>
> To: Linus Walleij <linusw at kernel.org>
> Cc: linux-gpio at vger.kernel.org
> Cc: linux-kernel at vger.kernel.org
> Signed-off-by: Philipp Hahn <phahn-oss at avm.de>

Patch applied to the pinctrl tree as obviously correct.

Yours,
Linus Walleij



More information about the Linux-rockchip mailing list