mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Revert "(CR):Charge:fix slab out of bounds risk"
This reverts commit a0fd67d78c59fb86dcedf1a127131ee9db51848b. Change-Id: I04abd6b4f19228fe83b5e2a70fd256d0bb3be9da Reviewed-on: https://gerrit.mot.com/1456928 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Huosheng Liao <liaohs@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
f30ab4d58b
commit
38b0ea5d0b
1 changed files with 1 additions and 4 deletions
|
|
@ -2550,10 +2550,7 @@ static void mmi_basic_charge_sm(struct smb_mmi_charger *chip,
|
|||
max_fv_mv = chip->base_fv_mv;
|
||||
|
||||
mmi_find_temp_zone(chip, prm, stat->batt_temp);
|
||||
if (prm->pres_temp_zone >= chip->num_temp_zones)
|
||||
zone = &prm->temp_zones[0];
|
||||
else
|
||||
zone = &prm->temp_zones[prm->pres_temp_zone];
|
||||
zone = &prm->temp_zones[prm->pres_temp_zone];
|
||||
|
||||
if (!stat->charger_present && !is_wls_online(chip)) {
|
||||
prm->pres_chrg_step = STEP_NONE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue