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

Richard Weinberger richard at nod.at
Thu Mar 12 19:33:42 UTC 2026


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



More information about the Linux-security-module-archive mailing list