From patchwork Mon Jul 1 17:02:36 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: 13718455 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 35C82C3065A for ; Mon, 1 Jul 2024 17:05:07 +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=3CViuYObNCMqI1SqWfnoWSmubNfIPSsKrCeCMGwa/l8=; b=nH7QpK2v4aVlZGMsy5t2qHAI4B v+Myl4U1ygOUk9MWdaEf9+UPs5AMPiHGcTXTmHCm+WaZn9ICJa9DBwucJ1Kjk1DC7wvVJRjNijJme kS2BEUgYANb65fNYzqVTVJ1x7E93llTN+Cduj2YutLqwvALjDm+8yyu8YYqpBUv+lBiCBd7kSbDWk BgBudapXRB9HwSrCs7w4MH8vw3TQ6eRJYH6wndS7VjujH6y2zA9B8vDwPTmXfWdi7tTIqq+54Vgbq Yh90lcotYlE8ls5Pgu7YIpgpJ4KUflGAw+eTOZzGtvG3C4W8fXScPBhvrEvTZbRojWAIEn2Tq3aYk u+5SDl5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOKST-00000004EFr-3r4H; Mon, 01 Jul 2024 17:04:53 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOKR4-00000004DWn-3RJ5 for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 17:03:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 56D76616DE; Mon, 1 Jul 2024 17:03:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7B91C2BD10; Mon, 1 Jul 2024 17:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719853406; bh=i7sSX89WHNGQ6uQZjHfVLt/vkEO18JcXdm0fhcL6CtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7S9IOr1wzURth6pwKxExtphVpsw9pWgo7Fqwma6YJ3w1CG0pt6wGRMlcA5G8vPk4 HlW6UaoawOkBu9H5iw9wqiM5tZ/CStHbKziv/8tFRgo7kfd5S9PExD3YzMNtAeUWPv yEw3nXRoVc77buFXlPjMpxx4F4sE7XF1XOEAYLHJ2WzBj4z++BY4Y0LpWmHmvLhZw6 oEJ1bBE5sv3QobDaD8VNolEz0tdevHzbpM9IB66c8XiJqjZArJmhrtmEqd0fIWvQAb HJPWXT34HfdVxwg02Qfj9tFj/HJZda3tACUzsSnTNTSg7H1t9cRy9WMKxkeLR/PmmK YtE7kCa4y6FOA== 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 12/25] irqchip/armada-370-xp: Use !virq instead of virq == 0 Date: Mon, 1 Jul 2024 19:02:36 +0200 Message-ID: <20240701170249.8128-13-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240701170249.8128-1-kabel@kernel.org> References: <20240701170249.8128-1-kabel@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_100326_929627_5B5BF12B X-CRM114-Status: GOOD ( 11.43 ) 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 d8b0609a9160..afd3a9c5b40c 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -539,7 +539,7 @@ static void armada_xp_mpic_reenable_percpu(void) int virq; virq = irq_linear_revmap(armada_370_xp_mpic_domain, irq); - if (virq == 0) + if (!virq) continue; data = irq_get_irq_data(virq); @@ -734,7 +734,7 @@ static void armada_370_xp_mpic_resume(void) int virq; virq = irq_linear_revmap(armada_370_xp_mpic_domain, irq); - if (virq == 0) + if (!virq) continue; data = irq_get_irq_data(virq);