Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Eliminate the follow coccicheck warning:
./drivers/power/supply/goldfish_battery.c:225:2-9: line 225 is
redundant because platform_get_irq() already prints an error

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Yang Li and committed by
Sebastian Reichel
b770583b d5408765

+1 -3
+1 -3
drivers/power/supply/goldfish_battery.c
··· 221 221 } 222 222 223 223 data->irq = platform_get_irq(pdev, 0); 224 - if (data->irq < 0) { 225 - dev_err(&pdev->dev, "platform_get_irq failed\n"); 224 + if (data->irq < 0) 226 225 return -ENODEV; 227 - } 228 226 229 227 ret = devm_request_irq(&pdev->dev, data->irq, 230 228 goldfish_battery_interrupt,