summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@gmail.com>2016-07-27 04:11:54 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 10:01:20 +0100
commitd70ee4f2de3de1f56f7b5d0837ad9d53320cf128 (patch)
tree91fc4c7294bdad07f08b7778a0e0bcdcc69f3c69 /fs
parent4bb594329a35e90ed7ff38db24f54aef8680f346 (diff)
downloadlinux-d70ee4f2de3de1f56f7b5d0837ad9d53320cf128.tar.gz
linux-d70ee4f2de3de1f56f7b5d0837ad9d53320cf128.tar.bz2
linux-d70ee4f2de3de1f56f7b5d0837ad9d53320cf128.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/befs/datastream.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c
index 41ce07766328..d7c4bb07e1e4 100644
--- a/fs/befs/datastream.c
+++ b/fs/befs/datastream.c
@@ -474,7 +474,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
(unsigned long)
iaddr2blockno(sb, &data->double_indirect) +
dbl_which_block);
- brelse(dbl_indir_block);
return BEFS_ERR;
}
@@ -499,7 +498,6 @@ befs_find_brun_dblindirect(struct super_block *sb,
befs_error(sb, "%s couldn't read the indirect block "
"at blockno %lu", __func__, (unsigned long)
iaddr2blockno(sb, &indir_run) + which_block);
- brelse(indir_block);
return BEFS_ERR;
}