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:
parent
7906d33c45
commit
daae40811e
10 changed files with 29 additions and 15 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue