projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
691df59
)
lib/fls.h: Remove unused variable assignment
author
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:52:10 +0000
(22:52 +0200)
committer
Erwan Velu
<erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 21:31:00 +0000
(23:31 +0200)
x is modified just before the last set of r but x is never used again.
Let's remove this useless assignment.
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
lib/fls.h
patch
|
blob
|
blame
|
history
diff --git
a/lib/fls.h
b/lib/fls.h
index dc7ecd0d629c94afe22a599739e76d68cb39922c..99e1862a34c5047d487b6ad2f300f61969dd8c3c 100644
(file)
--- a/
lib/fls.h
+++ b/
lib/fls.h
@@
-32,7
+32,6
@@
static inline int __fls(int x)
r -= 2;
}
if (!(x & 0x80000000u)) {
- x <<= 1;
r -= 1;
}
return r;