ocfs2: Remove bogus test from ocfs2_read_locked_inode()
PATCH 1/1 ocfs2: Remove bogus test from ocfs2_read_locked_inode()
'args' are always set for ocfs2_read_locked_inode() and brelse() checks whether bh is NULL. So the test (args && bh) is unnecessary (plus the args part is really confusing anyway). Remove it.
Coverity-id: 1128856
CC Mark Fasheh <[email protected]>
CC Joel Becker <[email protected]>
Signed-off-by Jan Kara <[email protected]>
--- fs/ocfs2/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/ocfs2/inode.c +1 -2
@@ -540,8 +540,7 @@ bail:if (status <0 )make_bad_inode (inode); -if (args && bh) -brelse (bh); +brelse (bh);return status; }
Signature · 1 line
1.8.1.4