diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-04-15 18:49:55 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-05-08 14:43:19 +0200 |
commit | 3cc52437d93c52b4ac26ed0467a9bd89106a9675 (patch) | |
tree | f7ba14d990d0419a23a23efcbf5941c0c67d8b29 | |
parent | aafbf04f958df9d65551946da450f05e2536c45a (diff) | |
download | linux-stable-3cc52437d93c52b4ac26ed0467a9bd89106a9675.tar.gz linux-stable-3cc52437d93c52b4ac26ed0467a9bd89106a9675.tar.bz2 linux-stable-3cc52437d93c52b4ac26ed0467a9bd89106a9675.zip |
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>
-rw-r--r-- | drivers/power/supply/rk817_charger.c | 2 |
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) || |