Commit d70ee4f2 authored by Salah Triki's avatar Salah Triki Committed by Luis de Bethencourt

fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect

The calls to brelse are useless since dbl_indir_block and indir_block
are NULL.
Signed-off-by: default avatarSalah Triki <salah.triki@gmail.com>
Acked-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
parent 4bb59432
...@@ -474,7 +474,6 @@ befs_find_brun_dblindirect(struct super_block *sb, ...@@ -474,7 +474,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
(unsigned long) (unsigned long)
iaddr2blockno(sb, &data->double_indirect) + iaddr2blockno(sb, &data->double_indirect) +
dbl_which_block); dbl_which_block);
brelse(dbl_indir_block);
return BEFS_ERR; return BEFS_ERR;
} }
...@@ -499,7 +498,6 @@ befs_find_brun_dblindirect(struct super_block *sb, ...@@ -499,7 +498,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
befs_error(sb, "%s couldn't read the indirect block " befs_error(sb, "%s couldn't read the indirect block "
"at blockno %lu", __func__, (unsigned long) "at blockno %lu", __func__, (unsigned long)
iaddr2blockno(sb, &indir_run) + which_block); iaddr2blockno(sb, &indir_run) + which_block);
brelse(indir_block);
return BEFS_ERR; return BEFS_ERR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment