[PATCH] drivers/perf: riscv: Remove redundant ternary operators

patchwork-bot+linux-riscv at kernel.org patchwork-bot+linux-riscv at kernel.org
Thu Sep 18 08:20:08 PDT 2025


Hello:

This patch was applied to riscv/linux.git (for-next)
by Paul Walmsley <pjw at kernel.org>:

On Thu, 28 Aug 2025 20:25:09 +0800 you wrote:
> For ternary operators in the form of "a ? true : false", if 'a' itself
> returns a boolean result, the ternary operator can be omitted. Remove
> redundant ternary operators to clean up the code.
> 
> Signed-off-by: Liao Yuanhong <liaoyuanhong at vivo.com>
> ---
>  drivers/perf/riscv_pmu_sbi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - drivers/perf: riscv: Remove redundant ternary operators
    https://git.kernel.org/riscv/c/01dc937ac18d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-arm-kernel mailing list