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

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.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 8ae56b4e
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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,