From patchwork Thu Jul 11 11:57:41 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: 13730632 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 41B11C3DA4A for ; Thu, 11 Jul 2024 11:59:13 +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=nhlNGAGZrvxx1680iXnqZ7lAAD rpQINDQebsJcccgGrC1p848zCbZWtMjdw5g0oJ4/gTCdz3QNk4GoTm7lUW00MeStfyCM0utVcJc2o P4vlh/N2CqA4is3X0R6KIN0Uozi4xCBzs8ZjsqmWLOY66FJ9weFoEpRc9R3EKrlNLPlIdfebcl2KO /JyKGA/sfZm/tkm82Pta/998cbGPAIya09CSUL1n4hTKCybYGBFYOimGguYzDd6pmGKb8x6N5X6Gx Epi9r8IkA6RFsxBXO2KYA85ofn28fEdzdjOyc0zEwJepzPH8B8ulLAineCXw0e14ATIrkeg5Vvvf+ Pf9X7uAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRsRx-0000000DsG6-2cBy; Thu, 11 Jul 2024 11:59:01 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRsR2-0000000DrwD-3cuI for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2024 11:58:06 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id EF69ECE18AF; Thu, 11 Jul 2024 11:58:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01F18C116B1; Thu, 11 Jul 2024 11:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720699082; bh=porvZP9S0xQ1EeXf8i+fFoTz4bgEaGc79PKfzvj9DU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oMPPZmoxSutTRbfE0+oVtFXcxFLa6YxnLZq1Qkd1JyW8VOzJAIjIxw7ECYwDsjXKm Afp65BdjgQWDv5XiCqHFJW4XckfWgIg55YyM63zj/8SpC0jDveJSWOm+yco5Z8stz1 xk9H2UYqLw7jX7sL+kUFrwnR9d3Mq4IdRXmM1D+ftFaRPmvRFXONBqlBqNKVpQxj2C 0KxFdJj3sWYMediccUXpk5e3EVVTNAX/meW5bfTWymD4vI1otaYuOn+4kY4zKVFlmN Fdit6yValeNZZHbQ5C1XaZl0aveY+jbDSdpuF5R2T3fAv2lU6bnOclGcC0HfafmE7V 9WmuT7NA2f3kw== 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 03/10] irqchip/armada-370-xp: Use !virq instead of virq == 0 in condition Date: Thu, 11 Jul 2024 13:57:41 +0200 Message-ID: <20240711115748.30268-4-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240711115748.30268-1-kabel@kernel.org> References: <20240711115748.30268-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_045805_108064_89C62A05 X-CRM114-Status: GOOD ( 11.46 ) 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 Reviewed-by: Andrew Lunn --- 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);