]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Remove needless checks in fs/9p/vfs_inode.c
authorEric Sesterhenn <snakebyte@gmx.de>
Sun, 25 Jun 2006 12:48:57 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:20 +0000 (10:01 -0700)
commitab611a7ec310d28a75abcb9edd0c12c6c42d65ca
treee43761b2e62c5ce2591113f65596389074c92105
parent9ac2a39e4eb86c2259cb68314c98dde4bf199eb6
[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>
fs/9p/vfs_inode.c