Commit fb9086e9 authored by Thorsten Blum's avatar Thorsten Blum Committed by Yury Norov
Browse files

riscv: Remove unnecessary int cast in variable_fls()



__builtin_clz() returns an int and casting the whole expression to int
is unnecessary. Remove it.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent 692a68ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static __always_inline int variable_fls(unsigned int x)
({								\
	typeof(x) x_ = (x);					\
	__builtin_constant_p(x_) ?				\
	 (int)((x_ != 0) ? (32 - __builtin_clz(x_)) : 0)	\
	 ((x_ != 0) ? (32 - __builtin_clz(x_)) : 0)		\
	 :							\
	 variable_fls(x_);					\
})