fix(sgi): align to misra rule for braces

Misra rule states that braces have to be used with every 'if', 'else',
'for', 'do', and 'while' statement. In order to align with the said
rule, add braces for the statements within plat_css_get_scmi_info.

Signed-off-by: Rohit Mathew <Rohit.Mathew@arm.com>
Change-Id: I826685e92926d90734b11d870dd624b11c9d1c30
This commit is contained in:
Rohit Mathew 2024-02-06 10:48:25 +00:00 committed by Omkar Anand Kulkarni
parent c69253cc3a
commit cacee06056

View file

@ -83,14 +83,15 @@ scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
sgi_plat_info.platform_id == RD_V2_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_N2_CFG1_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_N2_CFG3_SID_VER_PART_NUM) {
if (channel_id >= ARRAY_SIZE(plat_rd_scmi_info))
if (channel_id >= ARRAY_SIZE(plat_rd_scmi_info)) {
panic();
}
return &plat_rd_scmi_info[channel_id];
}
else if (sgi_plat_info.platform_id == SGI575_SSC_VER_PART_NUM)
} else if (sgi_plat_info.platform_id == SGI575_SSC_VER_PART_NUM) {
return &sgi575_scmi_plat_info;
else
} else {
panic();
}
}
void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,