Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL check. Change generated with coccinelle. To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Philipp Hahn --- fs/fuse/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 7ac6b232ef12323e3afb97b98301f623bce917a4..7b39c013027bd9c4ba6f080bfc9b3ec22bc2dd4a 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1599,7 +1599,7 @@ int fuse_reverse_inval_entry(struct fuse_conn *fc, u64 parent_nodeid, goto put_parent; while (!entry) { struct dentry *child = try_lookup_noperm(name, dir); - if (!child || IS_ERR(child)) + if (IS_ERR_OR_NULL(child)) goto put_parent; entry = start_removing_dentry(dir, child); dput(child); -- 2.43.0