Merge "Assert if power level value greater then PSCI_INVALID_PWR_LVL" into integration

This commit is contained in:
Soby Mathew 2019-09-13 12:02:11 +00:00 committed by TrustedFirmware Code Review
commit e65d3f45d7
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ static unsigned int get_power_on_target_pwrlvl(void)
pwrlvl = psci_get_suspend_pwrlvl();
if (pwrlvl == PSCI_INVALID_PWR_LVL)
pwrlvl = PLAT_MAX_PWR_LVL;
assert(pwrlvl < PSCI_INVALID_PWR_LVL);
return pwrlvl;
}