]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: remove bogus test from ocfs2_read_locked_inode()
authorJan Kara <jack@suse.cz>
Wed, 10 Dec 2014 23:41:42 +0000 (15:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:03 +0000 (17:41 -0800)
commit37b2d75053e8aa9f9096c63232421ce5a9b4708d
treecacaeb92ded0b14a914c66150913302c0e712de1
parentf9dafdd11b14d0618e639edc7caef88abc822b44
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>
fs/ocfs2/inode.c