style: soc: comply with MISRA C:2012 Rule 15.6

Add missing braces to comply with MISRA C:2012 Rule 15.6 and
also following Zephyr's style guideline.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-08-16 13:30:48 +07:00 committed by Henrik Brix Andersen
commit daae40811e
10 changed files with 29 additions and 15 deletions

View file

@ -107,10 +107,11 @@ void aspeed_print_abr_wdt_mode(void)
/* ABR enable */
if (sys_read32(HW_STRAP2_SCU510) & BIT(11)) {
printk("FMC ABR: Enable");
if (sys_read32(HW_STRAP2_SCU510) & BIT(12))
if (sys_read32(HW_STRAP2_SCU510) & BIT(12)) {
printk(", Single flash");
else
} else {
printk(", Dual flashes");
}
printk(", Source: %s (%d)",
(sys_read32(ASPEED_FMC_WDT2_CTRL) & BIT(4)) ? "Alternate" : "Primary",