Commit 78aec9bb authored by Gustavo Pimentel's avatar Gustavo Pimentel Committed by Vineet Gupta
Browse files

ARC: bitops: Remove unecessary operation and value



The 1-bit shift rotation to the left on x variable located on
4   last if statement can be removed because the computed value is will
not be used afront.

Signed-off-by: default avatarGustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 3b57533b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -243,10 +243,8 @@ static inline int constant_fls(unsigned int x)
		x <<= 2;
		r -= 2;
	}
	if (!(x & 0x80000000u)) {
		x <<= 1;
	if (!(x & 0x80000000u))
		r -= 1;
	}
	return r;
}