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:
Lu Chai 2019-11-18 02:26:29 -06:00
commit 38b0ea5d0b

View file

@ -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;