fs/isofs: delete unnecessary checks before brelse()
PATCH 1/1 fs/isofs: 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/isofs/dir.c | 3 +-- fs/isofs/export.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
fs/isofs/dir.c +1 -2
@@ -236,8 +236,7 @@ static int do_isofs_readdir(struct inode *inode, struct file *file, } ctx->pos += de_len; } -if (bh) -brelse (bh); +brelse (bh);return 0 ; }
fs/isofs/export.c +1 -2
@@ -102,8 +102,7 @@ static struct dentry *isofs_export_get_parent(struct dentry *child) rv =d_obtain_alias (isofs_iget (child_inode->i_sb, parent_block, parent_offset)); out: -if (bh) -brelse (bh); +brelse (bh);return rv; }
Signature · 1 line
2.25.1