summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-04-15 18:49:55 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-05-08 14:43:19 +0200
commit3cc52437d93c52b4ac26ed0467a9bd89106a9675 (patch)
treef7ba14d990d0419a23a23efcbf5941c0c67d8b29 /drivers/power
parentaafbf04f958df9d65551946da450f05e2536c45a (diff)
power: supply: rk817: Simplify an error message
dev_err_probe() already display the error code. There is no need to duplicate it explicitly in the error message. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/rk817_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rk817_charger.c b/drivers/power/supply/rk817_charger.c
index 1a2143641e66..8328bcea1a29 100644
--- a/drivers/power/supply/rk817_charger.c
+++ b/drivers/power/supply/rk817_charger.c
@@ -1134,7 +1134,7 @@ static int rk817_charger_probe(struct platform_device *pdev)
&bat_info);
if (ret) {
return dev_err_probe(dev, ret,
- "Unable to get battery info: %d\n", ret);
+ "Unable to get battery info\n");
}
if ((bat_info->charge_full_design_uah <= 0) ||