Skip to content

Commit

Permalink
lib/fls.h: Remove unused variable assignment
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ErwanAliasr1 committed Sep 8, 2021
1 parent 691df59 commit ecace1d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/fls.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ static inline int __fls(int x)
r -= 2;
}
if (!(x & 0x80000000u)) {
x <<= 1;
r -= 1;
}
return r;
Expand Down

0 comments on commit ecace1d

Please sign in to comment.