[PATCH] Remove needless checks in fs/9p/vfs_inode.c

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 <snakebyte@gmx.de>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@lanl.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Eric Sesterhenn 2006-06-25 05:48:57 -07:00 committed by Linus Torvalds
parent 18cddac3d1
commit 099a71d995
1 changed files with 0 additions and 6 deletions

View File

@ -530,9 +530,6 @@ error:
if (vfid)
v9fs_fid_destroy(vfid);
if (inode)
iput(inode);
return err;
}
@ -1174,9 +1171,6 @@ error:
if (vfid)
v9fs_fid_destroy(vfid);
if (inode)
iput(inode);
return err;
}