mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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: Thorsten Blum <thorsten.blum@toblux.com> Signed-off-by: Yury Norov <yury.norov@gmail.com>
This commit is contained in:
parent
692a68ee9c
commit
fb9086e95a
|
|
@ -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_); \
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user