From patchwork Tue Jul 2 11:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 13719491 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 461D6C30658 for ; Tue, 2 Jul 2024 11:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=uLohgfX9fQsFt+IIpGfPrK5za9lD1xL4Bvs0Kkd5VuI=; b=HX6l8NTn3VnMFXO1FnuXLL2R9J mw+3yfXFXiA6kCgYf+IqDC1hq874e6G/rHfu+H0aFyRxxnXyTqhufeLbj7Qc9EQutKG2gIPjYAXeM opRGkigtLAo1ygCtZ6wiTBrFiNxBvY+rUk+zFRzR/WVu0PXc9bwjb85wl85/3fUHIokTgsZXyAOaQ kru5khD4bDl7qH3FGVo+ub2ttrdSRSSyawPoeWHlKEK21b1+cjxuThnHE/7gImAUYiEmYW3VeQLHS xdf2sadYVGBtKRm3B1eBc5cSrsXaqb7w7xoemAz402ns9CKB+ANLeTN1ExiKBvIfgWwMGnVllWUfV z17vQqaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sObwy-00000006XHP-4Bh4; Tue, 02 Jul 2024 11:45:33 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sObvC-00000006WDv-3wzD for linux-arm-kernel@lists.infradead.org; Tue, 02 Jul 2024 11:43:44 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4612661C16; Tue, 2 Jul 2024 11:43:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD39CC116B1; Tue, 2 Jul 2024 11:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719920622; bh=porvZP9S0xQ1EeXf8i+fFoTz4bgEaGc79PKfzvj9DU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L8xKvT5SFlul5aNxx7qlx9q2DSOv3dpJURS9iNzSGsf+8vu9R7ItAy5L+bL9H53qD UDRI9pKUhLq10AmgNHzk1h2+4wyJ7NPa/STecxhQQ6u3uReS1uHPW8hDDKaJfYj43B D79/mZnB1AqqptZRERfG3n4L4ltYrDLNsqMCgZYnbYoACpc9SFgicWBLDg/iVTU28V Okmqa7pqJ4XLIv/Gm40vqD/Gt7wwdYCQtYtuSCdTWb0gyQfG/uj1Fvwy+tyH8heP3q qJB0Kk6VrCRmLr1z2Sr67OkR/7lH6xSH7xO1bDca+YCzhgRIFhI7tscUXkXCSkCbLQ Gz+MuQfQtE5Gw== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 13/30] irqchip/armada-370-xp: Use !virq instead of virq == 0 in condition Date: Tue, 2 Jul 2024 13:42:45 +0200 Message-ID: <20240702114302.22475-14-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240702114302.22475-1-kabel@kernel.org> References: <20240702114302.22475-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240702_044343_064401_2450851C X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use !virq instead of virq == 0 when checking for availability of the virq. Signed-off-by: Marek BehĂșn --- drivers/irqchip/irq-armada-370-xp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index b29f3bbfb1c3..c007610413fe 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -542,7 +542,7 @@ static void armada_xp_mpic_reenable_percpu(void) unsigned int virq; virq = irq_linear_revmap(armada_370_xp_mpic_domain, irq); - if (virq == 0) + if (!virq) continue; data = irq_get_irq_data(virq); @@ -737,7 +737,7 @@ static void armada_370_xp_mpic_resume(void) unsigned int virq; virq = irq_linear_revmap(armada_370_xp_mpic_domain, irq); - if (virq == 0) + if (!virq) continue; data = irq_get_irq_data(virq);