Remove needless checks in fs/9p/vfs_inode.c
PATCH 1/1 Remove needless checks in fs/9p/vfs_inode.c
hi,
coverity found two needless checks in vfs_inode.c (cid #1165 and #1164) In both cases inode is always NULL when we goto error; either because it is still initialized to NULL or is set to NULL explicitly. This patch simply removes these checks to save some code.
Signed-off-by Eric Sesterhenn <[email protected]>
fs/9p/vfs_inode.c renamed from fs/9p/vfs_inode.c.orig +0 -6
@@ -530,9 +530,6 @@ error:if (vfid)v9fs_fid_destroy (vfid); -if (inode) -iput (inode); -return err; }
@@ -1171,9 +1168,6 @@ error:if (vfid)v9fs_fid_destroy (vfid); -if (inode) -iput (inode); -return err; }