mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00
fix(el3-runtime): add missing curly braces
This corrects the MISRA violation C2012-15.6: The body of an iteration-statement or a selection-statement shall be a compound-statement. Enclosed statement body within the curly braces. Change-Id: I14a69f79aba98e243fa29a50914431358efa2a49 Signed-off-by: Nithin G <nithing@amd.com> Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
bd7ad5e684
commit
858dc35cfd
1 changed files with 6 additions and 4 deletions
|
@ -1966,10 +1966,11 @@ void cm_el1_sysregs_context_save(uint32_t security_state)
|
|||
el1_sysregs_context_save(get_el1_sysregs_ctx(ctx));
|
||||
|
||||
#if IMAGE_BL31
|
||||
if (security_state == SECURE)
|
||||
if (security_state == SECURE) {
|
||||
PUBLISH_EVENT(cm_exited_secure_world);
|
||||
else
|
||||
} else {
|
||||
PUBLISH_EVENT(cm_exited_normal_world);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -1983,10 +1984,11 @@ void cm_el1_sysregs_context_restore(uint32_t security_state)
|
|||
el1_sysregs_context_restore(get_el1_sysregs_ctx(ctx));
|
||||
|
||||
#if IMAGE_BL31
|
||||
if (security_state == SECURE)
|
||||
if (security_state == SECURE) {
|
||||
PUBLISH_EVENT(cm_entering_secure_world);
|
||||
else
|
||||
} else {
|
||||
PUBLISH_EVENT(cm_entering_normal_world);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue