projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae56b4
)
ext4: remove useless conditional branch code
author
wuchi
<wuchi.zero@gmail.com>
Sat, 1 Apr 2023 07:53:03 +0000
(15:53 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 20 Apr 2023 03:39:08 +0000
(23:39 -0400)
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>
fs/ext4/bitmap.c
patch
|
blob
|
history
diff --git
a/fs/ext4/bitmap.c
b/fs/ext4/bitmap.c
index 87c1c8ae929856b5ebb91bf153398c3bc4b5a3af..cd725bebe69ee3285c2c97c343bb914eaf86a172 100644
(file)
--- 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,