Commit 17809d3c authored by wuchi's avatar wuchi Committed by Theodore Ts'o

ext4: remove useless conditional branch code

It's ok because the code will be optimized by the compiler, just
try to simple the code.
Signed-off-by: default avatarwuchi <wuchi.zero@gmail.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230401075303.45206-1-wuchi.zero@gmail.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 8ae56b4e
......@@ -74,10 +74,7 @@ int ext4_block_bitmap_csum_verify(struct super_block *sb,
} else
calculated &= 0xFFFF;
if (provided == calculated)
return 1;
return 0;
return provided == calculated;
}
void ext4_block_bitmap_csum_set(struct super_block *sb,
......
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