Re: [PATCH 48/61] mtd: Prefer IS_ERR_OR_NULL over manual NULL check

Richard Weinberger
2026-03-13T12:58:42Z

----- Ursprüngliche Mail -----
> Von: "Philipp Hahn" <phahn-oss@avm.de>
> - if (gpiomtd->nwp && !IS_ERR(gpiomtd->nwp))
> + if (!IS_ERR_OR_NULL(gpiomtd->nwp))

No, please don't.

This makes reading the code not easier.

Thanks,
//richard