mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 23:35:10 +00:00
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:
parent
e372c29153
commit
bbf28dc37d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue