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:
Maheedhar Bollapalli 2024-04-25 12:12:40 +05:30
parent bd7ad5e684
commit 858dc35cfd

View file

@ -1966,10 +1966,11 @@ void cm_el1_sysregs_context_save(uint32_t security_state)
el1_sysregs_context_save(get_el1_sysregs_ctx(ctx)); el1_sysregs_context_save(get_el1_sysregs_ctx(ctx));
#if IMAGE_BL31 #if IMAGE_BL31
if (security_state == SECURE) if (security_state == SECURE) {
PUBLISH_EVENT(cm_exited_secure_world); PUBLISH_EVENT(cm_exited_secure_world);
else } else {
PUBLISH_EVENT(cm_exited_normal_world); PUBLISH_EVENT(cm_exited_normal_world);
}
#endif #endif
} }
@ -1983,10 +1984,11 @@ void cm_el1_sysregs_context_restore(uint32_t security_state)
el1_sysregs_context_restore(get_el1_sysregs_ctx(ctx)); el1_sysregs_context_restore(get_el1_sysregs_ctx(ctx));
#if IMAGE_BL31 #if IMAGE_BL31
if (security_state == SECURE) if (security_state == SECURE) {
PUBLISH_EVENT(cm_entering_secure_world); PUBLISH_EVENT(cm_entering_secure_world);
else } else {
PUBLISH_EVENT(cm_entering_normal_world); PUBLISH_EVENT(cm_entering_normal_world);
}
#endif #endif
} }