diff --git a/drivers/power/supply/cpcap-battery.c b/drivers/power/supply/cpcap-battery.c index 59c741993ef8..1d2b8bb08564 100644 --- a/drivers/power/supply/cpcap-battery.c +++ b/drivers/power/supply/cpcap-battery.c @@ -957,12 +957,8 @@ static int cpcap_battery_init_irq(struct platform_device *pdev, cpcap_battery_irq_thread, IRQF_SHARED | IRQF_ONESHOT, name, ddata); - if (error) { - dev_err(ddata->dev, "could not get irq %s: %i\n", - name, error); - + if (error) return error; - } d = devm_kzalloc(ddata->dev, sizeof(*d), GFP_KERNEL); if (!d)