OSDN Git Service

power: supply: da9150-fg: Remove unnecessary print function dev_err()
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 1 Mar 2022 08:16:19 +0000 (16:16 +0800)
committerSebastian Reichel <sre@kernel.org>
Fri, 4 Mar 2022 21:20:33 +0000 (22:20 +0100)
commite6824196f81f9a159a9473aaa5b0ed782d905745
tree707ce7e3617566111edfd4a9a5ce210b532c6ead
parent8652b62ee6f157ceba66dc3fe3a4afbac3b0a0f5
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>
drivers/power/supply/da9150-fg.c