From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75820CA1013 for ; Thu, 18 Sep 2025 15:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Date: Message-Id:From:Subject:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PdKKimirroLjAmBnssffgR48Lc6WdjekuNCs6ih9zmM=; b=3eCrLeVex2Dv6o 9CUIUrTUo5JPK8Ix/s7BwBym8S7SgatFVF3nJbaiMyXFmliHAR1iCIKCR8VoUMC/ZXQFFcWVYtJ/O M/mSqNkae+XLCGTt+hdjnKhuC26+IlHWKOiWIxEmzryadzVWdhnbKIi+cVvNp4+yBMZc+qNqZjHBy XXOwRiapLPKWtzJb2eZ5wfRPA/AsnK6aWKcy7L3vRWoY3brp03pHArkVZFkwZhI1vQZg6GNFb4mWj kmychEoLXXnszDaedZXSX/vTN2olWjuj0gCtq32s5jvgxRn4wG4jbraX54Z3Mw2C30xh3aGmjoqHM dltEI5+VoyfH1X2/0Msg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uzGQd-00000000LMj-1M9s; Thu, 18 Sep 2025 15:20:11 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uzGQb-00000000LLU-0tNK; Thu, 18 Sep 2025 15:20:09 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 84EBB601BC; Thu, 18 Sep 2025 15:20:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BA81C4CEE7; Thu, 18 Sep 2025 15:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758208808; bh=WtFvBNz1kJ7pD7bo4mQcWpsZ1ssTGarDzTz4XC7qwVU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=n49SMoE5Zt1WozM4r5I7FeD2ewGouOsP2e2IevUVtRyRC0LAPna1MaCaTClXqFwTj 7wEJGLQk4Q9BT8ewfa8KTYJvri6JYRmfKnZlhJegGrrzWTORDKTzAsAKwJA4oJYfUj YZY7HQi4xeNpO34JScJdzKRisVDd5jyZTnaxFHbWgtRikFi81Y0onbNtZf8Xpsu4S7 4x/IAMmM31spNaQbp0aNwomP8/86h/rm4k8ivzFLkXtPU7pG26flLaaKqVpZ7ftEq8 Z+zye+fFsehsVlS5Zyv78mYcNT1sEBb2S6fSLi+HScdyx+7Eyuv3lJypyQ4C9rWVLm WE0TtZ3w/aG3w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 70CA139D0C28; Thu, 18 Sep 2025 15:20:09 +0000 (UTC) MIME-Version: 1.0 Subject: Re: [PATCH] drivers/perf: riscv: Remove redundant ternary operators From: patchwork-bot+linux-riscv@kernel.org Message-Id: <175820880826.2459453.293698691705893286.git-patchwork-notify@kernel.org> Date: Thu, 18 Sep 2025 15:20:08 +0000 References: <20250828122510.30843-1-liaoyuanhong@vivo.com> In-Reply-To: <20250828122510.30843-1-liaoyuanhong@vivo.com> To: Liao Yuanhong Cc: linux-riscv@lists.infradead.org, atish.patra@linux.dev, anup@brainfault.org, will@kernel.org, mark.rutland@arm.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hello: This patch was applied to riscv/linux.git (for-next) by Paul Walmsley : 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 > --- > 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv