diff options
author | 2025-01-30 04:38:43 +0800 | |
---|---|---|
committer | 2025-03-18 12:47:20 +0000 | |
commit | 7f238b12660e53d7905b0d9989866b95a32c2467 (patch) | |
tree | a4f4f975e2326af206b547c9b287601ed5fee69b /net/lapb/lapb_timer.c | |
parent | riscv: Remove unused TASK_TI_FLAGS (diff) | |
download | wireguard-linux-7f238b12660e53d7905b0d9989866b95a32c2467.tar.xz wireguard-linux-7f238b12660e53d7905b0d9989866b95a32c2467.zip |
riscv: Simplify base extension checks and direct boolean return
Reduce three lines checking to single line using a ternary conditional
expression for getting the base extension word. In addition, the
test_bit macro function already return a boolean which matches the
return type of the caller, so directly return the result of the test_bit
macro function.
Signed-off-by: Chin Yik Ming <yikming2222@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20250129203843.1136838-1-yikming2222@gmail.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions