OSDN Git Service

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)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 16 Sep 2018 09:40:46 +0000 (11:40 +0200)
commit54baff8d4e5dce2cef61953b1dc22079cda1ddb1
tree3880f7657954d7637d4ec6faf4a7daa46c31b371
parent87a2b65fc855e6be50f791c2ebbb492541896827
power: supply: ab8500_fg: silence uninitialized variable warnings

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>
drivers/power/supply/ab8500_fg.c