Commit 4c9b1bfa authored by YueHaibing's avatar YueHaibing Committed by Marc Zyngier
Browse files

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: 5c4b585d ("irqchip/ti-sci-inta: Add support for INTA directly connecting to GIC")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Acked-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20200826035430.21060-1-yuehaibing@huawei.com
parent 821fc9e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -175,8 +175,8 @@ static struct ti_sci_inta_vint_desc *ti_sci_inta_alloc_parent_irq(struct irq_dom
	struct irq_fwspec parent_fwspec;
	struct device_node *parent_node;
	unsigned int parent_virq;
	u16 vint_id, p_hwirq;
	int ret;
	int p_hwirq, ret;
	u16 vint_id;

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