diff options
author | Jinpeng Cui <cui.jinpeng2@zte.com.cn> | 2022-08-31 19:08:43 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-12-01 18:46:54 +0300 |
commit | 71df9683827a17fb6279fcc2e52efdc7062a03b9 (patch) | |
tree | 5bc216cbebc0fb4894530a7a07ded92cd2e4a39b /fs/ext4/resize.c | |
parent | eee22187b53611e173161e38f61de1c7ecbeb876 (diff) | |
download | linux-71df9683827a17fb6279fcc2e52efdc7062a03b9.tar.xz |
ext4: remove redundant variable err
Return value directly from ext4_group_extend_no_check()
instead of getting value from redundant variable err.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@zte.com.cn>
Link: https://lore.kernel.org/r/20220831160843.305836-1-cui.jinpeng2@zte.com.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 46b87ffeb304..6e88a85abd7f 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -1831,7 +1831,6 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, ext4_grpblk_t last; ext4_grpblk_t add; struct buffer_head *bh; - int err; ext4_group_t group; o_blocks_count = ext4_blocks_count(es); @@ -1886,8 +1885,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es, } brelse(bh); - err = ext4_group_extend_no_check(sb, o_blocks_count, add); - return err; + return ext4_group_extend_no_check(sb, o_blocks_count, add); } /* ext4_group_extend */ |