fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect
authorSalah Triki <salah.triki@gmail.com>
Wed, 27 Jul 2016 03:11:54 +0000 (04:11 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Tue, 9 Aug 2016 14:18:06 +0000 (15:18 +0100)
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>
fs/befs/datastream.c

index 41ce07766328ddddf2b262dfc2ed9aea6495c91d..d7c4bb07e1e494075eb95e5930f14468364ce52a 100644 (file)
@@ -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;
        }
 
This page took 0.027274 seconds and 5 git commands to generate.