From ecace1d1596b502dc68773c5d4a9e8c6ecee3785 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 8 Sep 2021 22:52:10 +0200 Subject: [PATCH] lib/fls.h: Remove unused variable assignment 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 --- lib/fls.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/fls.h b/lib/fls.h index dc7ecd0d62..99e1862a34 100644 --- 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;