Commit d4922a95 authored by Nishanth Menon's avatar Nishanth Menon Committed by Jason Cooper

irqchip: crossbar: Remove IS_ERR_VALUE check

IS_ERR_VALUE makes sense only *if* there could be valid values in
negative error range. But in the cases that we do use it, there is no
such case. Just remove the same.
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarSricharan R <r.sricharan@ti.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-7-git-send-email-r.sricharan@ti.comSigned-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent ddee0fb4
...@@ -102,15 +102,15 @@ static int crossbar_domain_xlate(struct irq_domain *d, ...@@ -102,15 +102,15 @@ static int crossbar_domain_xlate(struct irq_domain *d,
unsigned long *out_hwirq, unsigned long *out_hwirq,
unsigned int *out_type) unsigned int *out_type)
{ {
unsigned long ret; int ret;
ret = get_prev_map_irq(intspec[1]); ret = get_prev_map_irq(intspec[1]);
if (!IS_ERR_VALUE(ret)) if (ret >= 0)
goto found; goto found;
ret = allocate_free_irq(intspec[1]); ret = allocate_free_irq(intspec[1]);
if (IS_ERR_VALUE(ret)) if (ret < 0)
return ret; return ret;
found: found:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment