Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
power: supply: ab8500_charger: Fix an error handling path
[ Upstream commit bf59fdd ] '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: 84edbee ("ab8500-charger: AB8500 charger driver") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information