power: supply: axp20x_ac_power: fix platform_get_irq.cocci warning
[linux-2.6-block.git] / drivers / power / supply / axp20x_ac_power.c
index ac360016b08ab67d23948800d9b325448a2c0664..57e50208d5371885d32c944cf20fbe27c1f30e32 100644 (file)
@@ -377,11 +377,9 @@ static int axp20x_ac_power_probe(struct platform_device *pdev)
        /* Request irqs after registering, as irqs may trigger immediately */
        for (i = 0; i < axp_data->num_irq_names; i++) {
                irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]);
-               if (irq < 0) {
-                       dev_err(&pdev->dev, "No IRQ for %s: %d\n",
-                               axp_data->irq_names[i], irq);
+               if (irq < 0)
                        return irq;
-               }
+
                power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
                ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i],
                                                   axp20x_ac_power_irq, 0,