Skip to content

Commit cba7543

Browse files
Minghao Chiakpm00
authored andcommitted
fs/qnx6: delete unnecessary checks before brelse()
brelse() tests whether its argument is NULL and then returns immediately. Thus remove the tests which are not needed around the shown calls. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Minghao Chi <[email protected]> Reported-by: Zeal Robot <[email protected]> Cc: CGEL ZTE <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Minghao Chi <[email protected]> Cc: Muchun Song <[email protected]> Cc: Theodore Ts'o <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2be9880 commit cba7543

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/qnx6/inode.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,8 @@ static int qnx6_fill_super(struct super_block *s, void *data, int silent)
470470
out1:
471471
iput(sbi->inodes);
472472
out:
473-
if (bh1)
474-
brelse(bh1);
475-
if (bh2)
476-
brelse(bh2);
473+
brelse(bh1);
474+
brelse(bh2);
477475
outnobh:
478476
kfree(qs);
479477
s->s_fs_info = NULL;

0 commit comments

Comments
 (0)