[PATCH 00/61] treewide: Use IS_ERR_OR_NULL over manual NULL check - refactor
Al Viro
viro at zeniv.linux.org.uk
Fri Apr 10 04:16:11 AEST 2026
On Tue, Mar 10, 2026 at 12:48:26PM +0100, Philipp Hahn wrote:
> While doing some static code analysis I stumbled over a common pattern,
> where IS_ERR() is combined with a NULL check. For that there is
> IS_ERR_OR_NULL().
... and valid uses of IS_ERR_OR_NULL are rare as hen teeth.
Most of those are "I'm not sure how this function returns an
error, let's use that just in case".
Please, do not introduce more of that crap.
More information about the Linux-erofs
mailing list