Skip to content

Commit d70ee4f

Browse files
salah-trikiluisbg
authored andcommitted
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: Salah Triki <salah.triki@gmail.com> Acked-by: Luis de Bethencourt <luisbg@osg.samsung.com>
1 parent 4bb5943 commit d70ee4f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/befs/datastream.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
474474
(unsigned long)
475475
iaddr2blockno(sb, &data->double_indirect) +
476476
dbl_which_block);
477-
brelse(dbl_indir_block);
478477
return BEFS_ERR;
479478
}
480479

@@ -499,7 +498,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
499498
befs_error(sb, "%s couldn't read the indirect block "
500499
"at blockno %lu", __func__, (unsigned long)
501500
iaddr2blockno(sb, &indir_run) + which_block);
502-
brelse(indir_block);
503501
return BEFS_ERR;
504502
}
505503

0 commit comments

Comments
 (0)