Skip to content

Commit 4c9b1bf

Browse files
YueHaibingMarc Zyngier
authored andcommitted
irqchip/ti-sci-inta: Fix unsigned comparison to zero
ti_sci_inta_xlate_irq() return -ENOENT on fail, p_hwirq should be int type. Fixes: 5c4b585 ("irqchip/ti-sci-inta: Add support for INTA directly connecting to GIC") 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/20200826035430.21060-1-yuehaibing@huawei.com
1 parent 821fc9e commit 4c9b1bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ static struct ti_sci_inta_vint_desc *ti_sci_inta_alloc_parent_irq(struct irq_dom
175175
struct irq_fwspec parent_fwspec;
176176
struct device_node *parent_node;
177177
unsigned int parent_virq;
178-
u16 vint_id, p_hwirq;
179-
int ret;
178+
int p_hwirq, ret;
179+
u16 vint_id;
180180

181181
vint_id = ti_sci_get_free_resource(inta->vint);
182182
if (vint_id == TI_SCI_RESOURCE_NULL)

0 commit comments

Comments
 (0)