diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-07-26 23:11:54 -0400 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 05:01:20 -0400 |
commit | d70ee4f2de3de1f56f7b5d0837ad9d53320cf128 (patch) | |
tree | 91fc4c7294bdad07f08b7778a0e0bcdcc69f3c69 | |
parent | 4bb594329a35e90ed7ff38db24f54aef8680f346 (diff) |
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>
-rw-r--r-- | fs/befs/datastream.c | 2 |
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, | |||
474 | (unsigned long) | 474 | (unsigned long) |
475 | iaddr2blockno(sb, &data->double_indirect) + | 475 | iaddr2blockno(sb, &data->double_indirect) + |
476 | dbl_which_block); | 476 | dbl_which_block); |
477 | brelse(dbl_indir_block); | ||
478 | return BEFS_ERR; | 477 | return BEFS_ERR; |
479 | } | 478 | } |
480 | 479 | ||
@@ -499,7 +498,6 @@ befs_find_brun_dblindirect(struct super_block *sb, | |||
499 | befs_error(sb, "%s couldn't read the indirect block " | 498 | befs_error(sb, "%s couldn't read the indirect block " |
500 | "at blockno %lu", __func__, (unsigned long) | 499 | "at blockno %lu", __func__, (unsigned long) |
501 | iaddr2blockno(sb, &indir_run) + which_block); | 500 | iaddr2blockno(sb, &indir_run) + which_block); |
502 | brelse(indir_block); | ||
503 | return BEFS_ERR; | 501 | return BEFS_ERR; |
504 | } | 502 | } |
505 | 503 | ||