DORMANTno replies

[PATCH] irqchip/ti-sci-intr: Fix unsigned expression compared with zero in ti_sci_intr_alloc_parent_irq

From: Ye Bin <hidden>
Date: 2020-08-24 07:52:00
Subsystem: irqchip drivers, texas instruments' system control interface (tisci) protocol driver, the rest · Maintainers: Thomas Gleixner, Nishanth Menon, Tero Kristo, Santosh Shilimkar, Linus Torvalds

Signed-off-by: Ye Bin <redacted>
---
 drivers/irqchip/irq-ti-sci-intr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c
index cbc1758228d9..54077b66b2bd 100644
--- a/drivers/irqchip/irq-ti-sci-intr.c
+++ b/drivers/irqchip/irq-ti-sci-intr.c
@@ -144,10 +144,11 @@ static int ti_sci_intr_alloc_parent_irq(struct irq_domain *domain,
 	if (out_irq == TI_SCI_RESOURCE_NULL)
 		return -EINVAL;
 
-	p_hwirq = ti_sci_intr_xlate_irq(intr, out_irq);
-	if (p_hwirq < 0)
+	err = ti_sci_intr_xlate_irq(intr, out_irq);
+	if (err < 0)
 		goto err_irqs;
 
+	p_hwirq = err;
 	parent_node = of_irq_find_parent(dev_of_node(intr->dev));
 	fwspec.fwnode = of_node_to_fwnode(parent_node);
 
-- 
2.25.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help