PD #00001: fix warning
authorKasin Lee <kasin.li@amlogic.com>
Mon, 28 Jul 2014 05:28:37 +0000 (13:28 +0800)
committerKasin Lee <kasin.li@amlogic.com>
Mon, 28 Jul 2014 05:30:30 +0000 (13:30 +0800)
Change-Id: I4f6b8413dc458805919d3370c80bf9a53de4c6e2

mali/common/mali_pmu.c

index fc0d76af8da4e88dec09402c6d9ccd6ef1791ba0..34165b7cc76cced0c7d91baf1ae539db12a10818 100755 (executable)
@@ -160,14 +160,13 @@ static _mali_osk_errcode_t mali_pmu_power_up_internal(struct mali_pmu_core *pmu,
 #else
        active_mask = mask & stat;
        mask_ck = active_mask;
+       swt_dly = 0xfff;
        for (current_domain = 1; current_domain <= pmu->registered_cores_mask; current_domain <<= 1) {
                if (current_domain & active_mask) {
                        if (mask_ck == 1) {
                                swt_dly = pmu->switch_delay;
                                xxd = 0;
                        }
-                       else
-                               swt_dly = 0xfff;
                        mali_hw_core_register_write_relaxed(&pmu->hw_core, PMU_REG_ADDR_MGMT_SW_DELAY, swt_dly);
                        mali_hw_core_register_write(&pmu->hw_core, PMU_REG_ADDR_MGMT_POWER_UP, current_domain);