diff options
author | wuchi <wuchi.zero@gmail.com> | 2023-04-01 09:53:03 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-04-20 05:39:08 +0200 |
commit | 17809d3cf801374d7c23101800770ea34951f3c8 (patch) | |
tree | e68b6936f7a575ee7dea23fb311fbc5381476c4c /fs/ext4 | |
parent | ext4: remove unneeded check of nr_to_submit (diff) | |
download | linux-17809d3cf801374d7c23101800770ea34951f3c8.tar.xz linux-17809d3cf801374d7c23101800770ea34951f3c8.zip |
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/bitmap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ext4/bitmap.c b/fs/ext4/bitmap.c index 87c1c8ae9298..cd725bebe69e 100644 --- a/fs/ext4/bitmap.c +++ b/fs/ext4/bitmap.c @@ -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, |