diff options
| author | Nicholas Troast <ntroast@codeaurora.org> | 2017-01-16 11:18:38 -0800 |
|---|---|---|
| committer | Nicholas Troast <ntroast@codeaurora.org> | 2017-01-17 12:21:06 -0800 |
| commit | cbd28f4381c058201f645427771f3205b641bb4b (patch) | |
| tree | ee833a93df3fe41c39a9827c3b1d59f77a36a5a3 | |
| parent | 6b20920b2d2bdbc13fe7b9f405c06d2cabf9763c (diff) | |
qcom-charger: smb-lib: fix return of an uninitialized variable
rc could be returned without being initialized. Initialize it.
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I044f74c7853e6853ae41734a95a4d86569c60457
| -rw-r--r-- | drivers/power/qcom-charger/smb-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/qcom-charger/smb-lib.c b/drivers/power/qcom-charger/smb-lib.c index eec96d30d4f9..9728490736ff 100644 --- a/drivers/power/qcom-charger/smb-lib.c +++ b/drivers/power/qcom-charger/smb-lib.c @@ -2010,7 +2010,7 @@ int smblib_set_prop_pd_current_max(struct smb_charger *chg, int smblib_set_prop_usb_current_max(struct smb_charger *chg, const union power_supply_propval *val) { - int rc; + int rc = 0; if (!chg->pd_active) { rc = vote(chg->usb_icl_votable, USB_PSY_VOTER, |
