]> www.infradead.org Git - users/dwmw2/linux.git/commit
riscv: Remove unnecessary int cast in variable_fls()
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 10 Jul 2024 20:24:18 +0000 (22:24 +0200)
committerYury Norov <yury.norov@gmail.com>
Wed, 10 Jul 2024 21:30:35 +0000 (14:30 -0700)
commitfb9086e95ad84f14e4f4db97ed96422c74407830
treef12ed6faa4374797effdfd6ac9e5f23fb0b5e058
parent692a68ee9c3c4ab984ae45a74a7569f14222d5aa
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>
arch/riscv/include/asm/bitops.h