mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
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: wuchi <wuchi.zero@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230401075303.45206-1-wuchi.zero@gmail.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
8ae56b4e82
commit
17809d3cf8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user