Skip to content

Commit e682419

Browse files
Yang Lisre
authored andcommitted
power: supply: da9150-fg: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq_byname() already prints an error. Eliminate the follow coccicheck warning: ./drivers/power/supply/da9150-fg.c:524:2-9: line 524 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> Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 8652b62 commit e682419

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/power/supply/da9150-fg.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,8 @@ static int da9150_fg_probe(struct platform_device *pdev)
520520

521521
/* Register IRQ */
522522
irq = platform_get_irq_byname(pdev, "FG");
523-
if (irq < 0) {
524-
dev_err(dev, "Failed to get IRQ FG: %d\n", irq);
523+
if (irq < 0)
525524
return irq;
526-
}
527525

528526
ret = devm_request_threaded_irq(dev, irq, NULL, da9150_fg_irq,
529527
IRQF_ONESHOT, "FG", fg);

0 commit comments

Comments
 (0)