linux/drivers/power
Christophe JAILLET bf59fddde1 power: supply: ab8500_charger: Fix an error handling path
'ret' is know to be 0 at this point, because it has not been updated by the
the previous call to 'abx500_mask_and_set_register_interruptible()'.

Fix it by updating 'ret' before checking if an error occurred.

Fixes: 84edbeeab6 ("ab8500-charger: AB8500 charger driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
2017-12-01 16:21:18 +01:00
..
avs PM / AVS: Use %pS printk format for direct addresses 2017-10-11 02:05:09 +02:00
reset power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE 2017-12-01 16:10:48 +01:00
supply power: supply: ab8500_charger: Fix an error handling path 2017-12-01 16:21:18 +01:00
Kconfig power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00
Makefile power: move power supply drivers to power/supply 2016-08-11 01:11:03 +02:00