Skip to content

Commit 8ddf190

Browse files
YueHaibingMarc Zyngier
authored andcommitted
irqchip/ti-sci-intr: Fix unsigned comparison to zero
ti_sci_intr_xlate_irq() return -ENOENT on fail, p_hwirq should be int type. Fixes: a5b659b ("irqchip/ti-sci-intr: Add support for INTR being a parent to INTR") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Lokesh Vutla <lokeshvutla@ti.com> Link: https://lore.kernel.org/r/20200826035321.18620-1-yuehaibing@huawei.com
1 parent 4c9b1bf commit 8ddf190

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/irqchip/irq-ti-sci-intr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ static int ti_sci_intr_alloc_parent_irq(struct irq_domain *domain,
137137
struct ti_sci_intr_irq_domain *intr = domain->host_data;
138138
struct device_node *parent_node;
139139
struct irq_fwspec fwspec;
140-
u16 out_irq, p_hwirq;
141-
int err = 0;
140+
int p_hwirq, err = 0;
141+
u16 out_irq;
142142

143143
out_irq = ti_sci_get_free_resource(intr->out_irqs);
144144
if (out_irq == TI_SCI_RESOURCE_NULL)

0 commit comments

Comments
 (0)