arch: arm: core: aarch32: cortex_m: fault: fix if...else ifs

bus_fault() and hard_fault() were missing final else statement
in the if else if constructs. This commit adds non-empty else {}
to comply with coding guideline 15.7.

Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
This commit is contained in:
Jennifer Williams 2021-03-10 03:51:50 +02:00 committed by Anas Nashif
parent a5c27d69b5
commit 734c65ad23
1 changed files with 6 additions and 0 deletions

View File

@ -397,6 +397,8 @@ static int bus_fault(z_arch_esf_t *esf, int from_hard_fault, bool *recoverable)
#else
} else if (SCB->CFSR & SCB_CFSR_LSPERR_Msk) {
PR_FAULT_INFO(" Floating-point lazy state preservation error");
} else {
;
}
#endif /* !defined(CONFIG_ARMV7_M_ARMV8_M_FP) */
@ -687,7 +689,11 @@ static uint32_t hard_fault(z_arch_esf_t *esf, bool *recoverable)
} else if (SAU->SFSR != 0) {
secure_fault(esf);
#endif /* CONFIG_ARM_SECURE_FIRMWARE */
} else {
;
}
} else {
;
}
#else
#error Unknown ARM architecture