Re: [PATCH] ARC: bitops: Remove unecessary operation and value

2020-11-05 Thread Vineet Gupta
On 10/21/20 2:12 PM, Gustavo Pimentel wrote: > 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. All of constant_fls() is anyhow optimized away at compile time, so this won't affect any cod

[PATCH] ARC: bitops: Remove unecessary operation and value

2020-10-21 Thread Gustavo Pimentel
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: Gustavo Pimentel --- arch/arc/include/asm/bitops.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/