]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: signal: Remove unlikely() from WARN_ON() condition
authorZhongqiu Han <quic_zhonhan@quicinc.com>
Thu, 20 Jun 2024 03:34:34 +0000 (11:34 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 26 Jul 2024 12:50:46 +0000 (05:50 -0700)
commit1d20e5d437cfebefb5e6f4d652c3a1561fc23fc7
tree8cb1ad55b67863349235dea40452cc420d589d3d
parent5d5fc33ce58e81e8738816f5ee59f8e85fd3b404
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 <quic_zhonhan@quicinc.com>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Andy Chiu <andy.chiu@sifive.com>
Link: https://lore.kernel.org/r/20240620033434.3778156-1-quic_zhonhan@quicinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/signal.c