diff options
author | Marek Behún <kabel@kernel.org> | 2024-07-08 17:17:59 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-07-30 13:35:46 +0200 |
commit | ccef3a991b7c972cccce4aee8e62f70e3a706e78 (patch) | |
tree | 38ee321f21641a92debeb877911050129e447756 /drivers/irqchip/irq-armada-370-xp.c | |
parent | irqchip/armada-370-xp: Use correct type for cpu variable (diff) | |
download | linux-ccef3a991b7c972cccce4aee8e62f70e3a706e78.tar.xz linux-ccef3a991b7c972cccce4aee8e62f70e3a706e78.zip |
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@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/all/20240708151801.11592-9-kabel@kernel.org
Diffstat (limited to '')
-rw-r--r-- | drivers/irqchip/irq-armada-370-xp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index b9631cc25c0b..cfd6dc803150 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; } /* |