All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] irqchip/ti-sci-intr: Fix unsigned comparison to zero
@ 2020-08-26  3:53 ` YueHaibing
  0 siblings, 0 replies; 7+ messages in thread
From: YueHaibing @ 2020-08-26  3:53 UTC (permalink / raw)
  To: nm, t-kristo, ssantosh, tglx, jason, maz, lokeshvutla
  Cc: linux-arm-kernel, linux-kernel, YueHaibing

ti_sci_intr_xlate_irq() return -ENOENT on fail, p_hwirq
should be int type.

Fixes: a5b659bd4bc7 ("irqchip/ti-sci-intr: Add support for INTR being a parent to INTR")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/irqchip/irq-ti-sci-intr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci-intr.c
index cbc1758228d9..85a72b56177c 100644
--- a/drivers/irqchip/irq-ti-sci-intr.c
+++ b/drivers/irqchip/irq-ti-sci-intr.c
@@ -137,8 +137,8 @@ static int ti_sci_intr_alloc_parent_irq(struct irq_domain *domain,
 	struct ti_sci_intr_irq_domain *intr = domain->host_data;
 	struct device_node *parent_node;
 	struct irq_fwspec fwspec;
-	u16 out_irq, p_hwirq;
-	int err = 0;
+	int p_hwirq, err = 0;
+	u16 out_irq;
 
 	out_irq = ti_sci_get_free_resource(intr->out_irqs);
 	if (out_irq == TI_SCI_RESOURCE_NULL)
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-11 17:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26  3:53 [PATCH -next] irqchip/ti-sci-intr: Fix unsigned comparison to zero YueHaibing
2020-08-26  3:53 ` YueHaibing
2020-08-26  3:57 ` Lokesh Vutla
2020-08-26  3:57   ` Lokesh Vutla
2020-09-13 15:20 ` Marc Zyngier
2020-09-13 15:20   ` Marc Zyngier
2020-10-11 17:57 ` [tip: irq/core] " tip-bot2 for YueHaibing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.