fix(el3-spmc): move ERROR line inside conditional

Fix an issue where one ERROR line was placed
incorrectly outside its conditional check.

Signed-off-by: Andrei Homescu <ahomescu@google.com>
Change-Id: I7860c399e4a84de6eaa4139fe2103595c52576dd
This commit is contained in:
Andrei Homescu 2024-10-09 06:07:27 +00:00
parent e372c29153
commit bbf28dc37d

View file

@ -1398,8 +1398,8 @@ static uint64_t ffa_run_handler(uint32_t smc_fid,
/* Check that the target SP exists. */ /* Check that the target SP exists. */
sp = spmc_get_sp_ctx(target_id); sp = spmc_get_sp_ctx(target_id);
ERROR("Unknown partition ID (0x%x).\n", target_id);
if (sp == NULL) { if (sp == NULL) {
ERROR("Unknown partition ID (0x%x).\n", target_id);
return spmc_ffa_error_return(handle, return spmc_ffa_error_return(handle,
FFA_ERROR_INVALID_PARAMETER); FFA_ERROR_INVALID_PARAMETER);
} }