power: supply: rk817: Simplify an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 15 Apr 2023 16:49:55 +0000 (18:49 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 8 May 2023 12:43:19 +0000 (14:43 +0200)
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>
drivers/power/supply/rk817_charger.c

index 1a21436..8328bce 100644 (file)
@@ -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) ||