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

From: Richard Weinberger

Date: Thu Mar 12 2026 - 15:42:20 EST


----- Ursprüngliche Mail -----
> Von: "Philipp Hahn" <phahn-oss@xxxxxx>
> - 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