diff options
author | Thorsten Blum <thorsten.blum@toblux.com> | 2024-07-10 23:24:18 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2024-07-11 00:30:35 +0300 |
commit | fb9086e95ad84f14e4f4db97ed96422c74407830 (patch) | |
tree | f12ed6faa4374797effdfd6ac9e5f23fb0b5e058 /arch/riscv/include | |
parent | 692a68ee9c3c4ab984ae45a74a7569f14222d5aa (diff) | |
download | linux-fb9086e95ad84f14e4f4db97ed96422c74407830.tar.xz |
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>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/asm/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/bitops.h b/arch/riscv/include/asm/bitops.h index 880606b0469a..71af9ecfcfcb 100644 --- a/arch/riscv/include/asm/bitops.h +++ b/arch/riscv/include/asm/bitops.h @@ -170,7 +170,7 @@ legacy: ({ \ 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_); \ }) |