Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

wuchi and committed by
Theodore Ts'o
17809d3c 8ae56b4e

+1 -4
+1 -4
fs/ext4/bitmap.c
··· 74 74 } else 75 75 calculated &= 0xFFFF; 76 76 77 - if (provided == calculated) 78 - return 1; 79 - 80 - return 0; 77 + return provided == calculated; 81 78 } 82 79 83 80 void ext4_block_bitmap_csum_set(struct super_block *sb,