qnx6: delete unnecessary checks before brelse()
PATCH 1/1 qnx6: delete unnecessary checks before brelse()
From: Minghao Chi <[email protected]>
The brelse() function tests whether its argument is NULL and then returns immediately.
Thus remove the tests which are not needed around the shown calls.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
--- fs/qnx6/super_mmi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
fs/qnx6/super_mmi.c +2 -4
@@ -141,9 +141,7 @@ struct qnx6_super_block *qnx6_mmi_fill_super(struct super_block *s, int silent)return sbi->sb; out: -if (bh1 !=NULL ) -brelse (bh1); -if (bh2 !=NULL ) -brelse (bh2); +brelse (bh1); +brelse (bh2);return NULL ; }
Signature · 1 line
2.25.1