[tip: irq/core] irqchip/armada-370-xp: Simplify is_percpu_irq() code
From: tip-bot2 for Marek Behún
Date: Mon Jul 29 2024 - 05:52:59 EST
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 4b75b6d09a258f9a0b3f0087e8848f8963e4a398
Gitweb: https://git.kernel.org/tip/4b75b6d09a258f9a0b3f0087e8848f8963e4a398
Author: Marek Behún <kabel@xxxxxxxxxx>
AuthorDate: Mon, 08 Jul 2024 17:17:59 +02:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CommitterDate: Mon, 29 Jul 2024 10:57:22 +02:00
irqchip/armada-370-xp: Simplify is_percpu_irq() code
Simplify the code in the is_percpu_irq() function. Instead of
if (condition)
return true;
return false;
simply return condition.
Signed-off-by: Marek Behún <kabel@xxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
Link: https://lore.kernel.org/all/20240708151801.11592-9-kabel@xxxxxxxxxx
---
drivers/irqchip/irq-armada-370-xp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index b9631cc..cfd6dc8 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -201,10 +201,7 @@ static inline unsigned int msi_doorbell_end(void)
static inline bool is_percpu_irq(irq_hw_number_t irq)
{
- if (irq <= MPIC_MAX_PER_CPU_IRQS)
- return true;
-
- return false;
+ return irq <= MPIC_MAX_PER_CPU_IRQS;
}
/*