power: supply: max17042_battery: Fix compiler warning
authorHans de Goede <hdegoede@redhat.com>
Tue, 29 Aug 2017 09:27:28 +0000 (11:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Tue, 29 Aug 2017 10:04:14 +0000 (12:04 +0200)
commit4f1e0cb78810afab889fc407ff18c112663a1579
tree2bb496801f8d7865d4a7aa38af89a311142acd70
parent1e743997fb9a56cbb34591f5fe88a74c14b8688d
power: supply: max17042_battery: Fix compiler warning

Fix drivers/power/supply/max17042_battery.c:1059:6:
warning: 'acpi_id' may be used uninitialized in this function.

No idea why my gcc version did not catch this.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/max17042_battery.c