Commit 7d4cd3b4 authored by Kemeng Shi's avatar Kemeng Shi Committed by Theodore Ts'o

ext4: remove redundant check of count

Remove zero check of count which is always non-zero.
Signed-off-by: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: default avatarTheodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20230826174712.4059355-7-shikemeng@huaweicloud.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent e44fc921
...@@ -699,7 +699,6 @@ static int setup_new_flex_group_blocks(struct super_block *sb, ...@@ -699,7 +699,6 @@ static int setup_new_flex_group_blocks(struct super_block *sb,
block = start; block = start;
} }
if (count) {
err = set_flexbg_block_bitmap(sb, handle, err = set_flexbg_block_bitmap(sb, handle,
flex_gd, flex_gd,
EXT4_B2C(sbi, start), EXT4_B2C(sbi, start),
...@@ -709,7 +708,6 @@ static int setup_new_flex_group_blocks(struct super_block *sb, ...@@ -709,7 +708,6 @@ static int setup_new_flex_group_blocks(struct super_block *sb,
if (err) if (err)
goto out; goto out;
} }
}
out: out:
err2 = ext4_journal_stop(handle); err2 = ext4_journal_stop(handle);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment