style: add braces around if/while statements
Per guidelines, all statements should have braces around them. We do not have a CI check for this, so a few went in unnoticed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
912e117e9e
commit
4c32258606
63 changed files with 281 additions and 195 deletions
|
@ -228,8 +228,9 @@ static int rtc_stm32_init(struct device *dev)
|
|||
#if defined(CONFIG_RTC_STM32_CLOCK_LSI)
|
||||
|
||||
LL_RCC_LSI_Enable();
|
||||
while (LL_RCC_LSI_IsReady() != 1)
|
||||
;
|
||||
while (LL_RCC_LSI_IsReady() != 1) {
|
||||
}
|
||||
|
||||
LL_RCC_SetRTCClockSource(LL_RCC_RTC_CLKSOURCE_LSI);
|
||||
|
||||
#else /* CONFIG_RTC_STM32_CLOCK_LSE */
|
||||
|
@ -238,8 +239,8 @@ static int rtc_stm32_init(struct device *dev)
|
|||
LL_RCC_LSE_Enable();
|
||||
|
||||
/* Wait untill LSE is ready */
|
||||
while (LL_RCC_LSE_IsReady() != 1)
|
||||
;
|
||||
while (LL_RCC_LSE_IsReady() != 1) {
|
||||
}
|
||||
|
||||
LL_RCC_SetRTCClockSource(LL_RCC_RTC_CLKSOURCE_LSE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue