diff options
author | Olivier Deprez <olivier.deprez@arm.com> | 2023-11-07 13:35:30 +0100 |
---|---|---|
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | 2023-11-07 13:35:30 +0100 |
commit | e0c7d8f56c4a9dc92f89d2999d600986ed99acb3 (patch) | |
tree | 6e92dce9fc937947f947a01f302f10cd04470d4b /lib/psci/psci_on.c | |
parent | 5a4c3f0baab2059c159995525fd92d59aac6ea43 (diff) | |
parent | e60c18471fc7488cc0bf1dc7eae3b43be77045a4 (diff) |
Merge "fix(smccc): ensure that mpidr passed through SMC is valid" into integration
Diffstat (limited to 'lib/psci/psci_on.c')
-rw-r--r-- | lib/psci/psci_on.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/psci/psci_on.c b/lib/psci/psci_on.c index 31875ff3d..b2797749f 100644 --- a/lib/psci/psci_on.c +++ b/lib/psci/psci_on.c @@ -61,15 +61,7 @@ int psci_cpu_on_start(u_register_t target_cpu, { int rc; aff_info_state_t target_aff_state; - int ret = plat_core_pos_by_mpidr(target_cpu); - unsigned int target_idx; - - /* Calling function must supply valid input arguments */ - assert(ret >= 0); - assert((unsigned int)ret < PLATFORM_CORE_COUNT); - assert(ep != NULL); - - target_idx = (unsigned int)ret; + unsigned int target_idx = (unsigned int)plat_core_pos_by_mpidr(target_cpu); /* * This function must only be called on platforms where the |