summaryrefslogtreecommitdiff
path: root/lib/psci/psci_on.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/psci/psci_on.c')
-rw-r--r--lib/psci/psci_on.c10
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