diff options
author | Nishanth Menon <nm@ti.com> | 2014-06-26 03:10:24 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-06-30 15:11:21 -0400 |
commit | d4922a95a70f0c8c5e45e22af629a5b5f370b867 (patch) | |
tree | ed3020aebf2717b54a55f61b3fcf29525745e9d6 /drivers/irqchip/irq-crossbar.c | |
parent | ddee0fb46d26174e71ee1df225b9f9feaff05e10 (diff) |
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: Nishanth Menon <nm@ti.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-7-git-send-email-r.sricharan@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/irqchip/irq-crossbar.c')
-rw-r--r-- | drivers/irqchip/irq-crossbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-crossbar.c b/drivers/irqchip/irq-crossbar.c index a39cb316d2b0..88fbe0ff1dde 100644 --- a/drivers/irqchip/irq-crossbar.c +++ b/drivers/irqchip/irq-crossbar.c | |||
@@ -102,15 +102,15 @@ static int crossbar_domain_xlate(struct irq_domain *d, | |||
102 | unsigned long *out_hwirq, | 102 | unsigned long *out_hwirq, |
103 | unsigned int *out_type) | 103 | unsigned int *out_type) |
104 | { | 104 | { |
105 | unsigned long ret; | 105 | int ret; |
106 | 106 | ||
107 | ret = get_prev_map_irq(intspec[1]); | 107 | ret = get_prev_map_irq(intspec[1]); |
108 | if (!IS_ERR_VALUE(ret)) | 108 | if (ret >= 0) |
109 | goto found; | 109 | goto found; |
110 | 110 | ||
111 | ret = allocate_free_irq(intspec[1]); | 111 | ret = allocate_free_irq(intspec[1]); |
112 | 112 | ||
113 | if (IS_ERR_VALUE(ret)) | 113 | if (ret < 0) |
114 | return ret; | 114 | return ret; |
115 | 115 | ||
116 | found: | 116 | found: |