mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Acked-by: Eric Van Hensbergen <[email protected]> Cc: Ron Minnich <[email protected]> Cc: Latchesar Ionkov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
18cddac3d1
commit
099a71d995
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue