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

From: patchwork-bot+linux-riscv

Date: Thu Sep 18 2025 - 11:20:08 EST


Hello:

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

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@xxxxxxxx>
> ---
> 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