ocfs2: clean up redundant NULL check before iput
Since iput will take care the NULL check itself, NULL check before calling it is redundant. So clean them up. Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Cc: Mark Fasheh <mfasheh@suse.de> 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:

committed by
Linus Torvalds

parent
b556014338
commit
72865d9230
@@ -6174,8 +6174,7 @@ int ocfs2_begin_truncate_log_recovery(struct ocfs2_super *osb,
|
||||
}
|
||||
|
||||
bail:
|
||||
if (tl_inode)
|
||||
iput(tl_inode);
|
||||
iput(tl_inode);
|
||||
brelse(tl_bh);
|
||||
|
||||
if (status < 0) {
|
||||
|
Reference in New Issue
Block a user