]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/power/charger-manager.c
charger-manager: Simplify charger_get_property(), get rid of a warning
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 15 Mar 2012 17:01:28 +0000 (21:01 +0400)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:20 +0000 (20:41 +0400)
commitdf58c04c9f4182f979973a06ce40b44a5b84aeb5
tree8957ee174e8ea20ce0ef09567904c269a18dd602
parentbb2a95c2d2450be1ac942adf6815375f620b7015
charger-manager: Simplify charger_get_property(), get rid of a warning

This patch fixes the following warning and makes the code a little
bit more simpler:

  CC      drivers/power/charger-manager.o
charger-manager.c: In function 'charger_get_property':
charger-manager.c:429:15: warning: 'i' may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/charger-manager.c