Skip to content

Commit 3cc5243

Browse files
tititiou36sre
authored andcommitted
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>
1 parent aafbf04 commit 3cc5243

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/rk817_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ static int rk817_charger_probe(struct platform_device *pdev)
11341134
&bat_info);
11351135
if (ret) {
11361136
return dev_err_probe(dev, ret,
1137-
"Unable to get battery info: %d\n", ret);
1137+
"Unable to get battery info\n");
11381138
}
11391139

11401140
if ((bat_info->charge_full_design_uah <= 0) ||

0 commit comments

Comments
 (0)