Merge pull request #515 from soby-mathew/sm/gcc_false_positive

PSCI: Resolve GCC static analysis false positive
This commit is contained in:
danh-arm 2016-02-09 10:56:53 +00:00
commit a1411b29d7
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ void psci_do_state_coordination(unsigned int end_pwrlvl,
unsigned int start_idx, ncpus;
plat_local_state_t target_state, *req_states;
assert(end_pwrlvl <= PLAT_MAX_PWR_LVL);
parent_idx = psci_cpu_pd_nodes[cpu_idx].parent_node;
/* For level 0, the requested state will be equivalent