• Yidi Lin's avatar
    mediatek: mt8192: Fix non-MISRA compliant code · 44ad5d67
    Yidi Lin authored
    
    
    CID 364146: Control flow issues (DEADCODE)
    
    Since the value of PSTATE_PWR_LVL_MASK and the value the of PLAT_MAX_PWR_LVL
    are equal on mt8192, the following equation never hold.
    
    if (aff_lvl > PLAT_MAX_PWR_LVL) {
    	return PSCI_E_INVALID_PARAMS;
    }
    
    Remove the deadcode to comply with MISRA standard.
    Signed-off-by: default avatarYidi Lin <yidi.lin@mediatek.com>
    Change-Id: I71d0aa826eded8c3b5af961e733167ae40699398
    44ad5d67
plat_pm.c 9.64 KB