diff mbox series

[05/10] irqchip/armada-370-xp: Drop unneeded curly brackets

Message ID 20240711160907.31012-6-kabel@kernel.org (mailing list archive)
State New, archived
Headers show
Series armada-370-xp irqchip updates round 4 | expand

Commit Message

Marek Behún July 11, 2024, 4:09 p.m. UTC
Drop unneeded curly brackets in mpic_msi_alloc().

Signed-off-by: Marek Behún <kabel@kernel.org>
---
 drivers/irqchip/irq-armada-370-xp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Thomas Gleixner July 29, 2024, 8:52 a.m. UTC | #1
On Thu, Jul 11 2024 at 18:09, Marek Behún wrote:
> Drop unneeded curly brackets in mpic_msi_alloc().

No.

https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#bracket-rules
diff mbox series

Patch

diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c
index 3fc669cfd494..3d4f32f340f6 100644
--- a/drivers/irqchip/irq-armada-370-xp.c
+++ b/drivers/irqchip/irq-armada-370-xp.c
@@ -289,12 +289,11 @@  static int mpic_msi_alloc(struct irq_domain *domain, unsigned int virq,
 	if (hwirq < 0)
 		return -ENOSPC;
 
-	for (unsigned int i = 0; i < nr_irqs; i++) {
+	for (unsigned int i = 0; i < nr_irqs; i++)
 		irq_domain_set_info(domain, virq + i, hwirq + i,
 				    &mpic_msi_bottom_irq_chip,
 				    domain->host_data, handle_simple_irq,
 				    NULL, NULL);
-	}
 
 	return 0;
 }