power: supply: ab8500_fg: silence uninitialized variable warnings
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 10 Sep 2018 08:39:04 +0000 (11:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:01 +0000 (18:00 +0100)
commite0ecbca8ff27376cbaa68e5c64374344b85c760c
tree0b25d7f46ce516b23d9e4f44160737b8aed8bdc2
parent46af2022de198ebbf47141b7b33522e28733045d
power: supply: ab8500_fg: silence uninitialized variable warnings

[ Upstream commit 54baff8d4e5dce2cef61953b1dc22079cda1ddb1 ]

If kstrtoul() fails then we print "charge_full" when it's uninitialized.
The debug printk doesn't add anything so I deleted it and cleaned these
two functions up a bit.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/power/supply/ab8500_fg.c