diff options
| author | Zhongqiu Han <[email protected]> | 2024-06-20 03:34:34 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2024-07-26 12:50:46 +0000 |
| commit | 1d20e5d437cfebefb5e6f4d652c3a1561fc23fc7 (patch) | |
| tree | 8cb1ad55b67863349235dea40452cc420d589d3d | |
| parent | riscv: Improve exception and system call latency (diff) | |
| download | kernel-1d20e5d437cfebefb5e6f4d652c3a1561fc23fc7.tar.gz kernel-1d20e5d437cfebefb5e6f4d652c3a1561fc23fc7.zip | |
riscv: signal: Remove unlikely() from WARN_ON() condition
"WARN_ON(unlikely(x))" is excessive. WARN_ON() already uses unlikely()
internally.
Signed-off-by: Zhongqiu Han <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Reviewed-by: Andy Chiu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
| -rw-r--r-- | arch/riscv/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/signal.c b/arch/riscv/kernel/signal.c index 5a2edd7f027e..dcd282419456 100644 --- a/arch/riscv/kernel/signal.c +++ b/arch/riscv/kernel/signal.c @@ -84,7 +84,7 @@ static long save_v_state(struct pt_regs *regs, void __user **sc_vec) datap = state + 1; /* datap is designed to be 16 byte aligned for better performance */ - WARN_ON(unlikely(!IS_ALIGNED((unsigned long)datap, 16))); + WARN_ON(!IS_ALIGNED((unsigned long)datap, 16)); get_cpu_vector_context(); riscv_v_vstate_save(¤t->thread.vstate, regs); |
