[PATCH] kernel: irq: irqdesc: comments on endif's

From: Enrico Weigelt, metux IT consult
Date: Fri Dec 18 2020 - 08:27:16 EST


For better readability, add a comments to #endif's, telling which
condition they're closing.

Signed-off-by: Enrico Weigelt, metux IT consult <info@xxxxxxxxx>
---
kernel/irq/irqdesc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index e810eb9906ea..ed56e9c65866 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -729,8 +729,8 @@ int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq,
set_irq_regs(old_regs);
return ret;
}
-#endif
-#endif
+#endif /* CONFIG_IRQ_DOMAIN */
+#endif /* CONFIG_HANDLE_DOMAIN_IRQ */

/* Dynamic interrupt handling */

--
2.11.0