remove lots of IS_ERR_VALUE abuses
[sfrench/cifs-2.6.git] / drivers / mfd / twl4030-irq.c
index 40e51b0baa46b57ec10a2ec0893ca0d6d1c82884..b46c0cfc27d9586c946474853c1b3dd8eaaf1e92 100644 (file)
@@ -696,7 +696,7 @@ int twl4030_init_irq(struct device *dev, int irq_num)
        nr_irqs = TWL4030_PWR_NR_IRQS + TWL4030_CORE_NR_IRQS;
 
        irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0);
-       if (IS_ERR_VALUE(irq_base)) {
+       if (irq_base < 0) {
                dev_err(dev, "Fail to allocate IRQ descs\n");
                return irq_base;
        }