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>
This commit is contained in:
Christophe JAILLET 2023-04-15 18:49:55 +02:00 коммит произвёл Sebastian Reichel
Родитель aafbf04f95
Коммит 3cc52437d9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1134,7 +1134,7 @@ static int rk817_charger_probe(struct platform_device *pdev)
&bat_info); &bat_info);
if (ret) { if (ret) {
return dev_err_probe(dev, 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) || if ((bat_info->charge_full_design_uah <= 0) ||