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.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jan Kara 2014-12-10 15:41:42 -08:00 committed by Linus Torvalds
parent 2b693005b8
commit 4a635a113b
1 changed files with 1 additions and 2 deletions

View File

@ -540,8 +540,7 @@ bail:
if (status < 0)
make_bad_inode(inode);
if (args && bh)
brelse(bh);
brelse(bh);
return status;
}