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
|
@ -392,8 +392,8 @@ static void uart_stm32_poll_out(struct device *dev,
|
|||
USART_TypeDef *UartInstance = UART_STRUCT(dev);
|
||||
|
||||
/* Wait for TXE flag to be raised */
|
||||
while (!LL_USART_IsActiveFlag_TXE(UartInstance))
|
||||
;
|
||||
while (!LL_USART_IsActiveFlag_TXE(UartInstance)) {
|
||||
}
|
||||
|
||||
LL_USART_ClearFlag_TC(UartInstance);
|
||||
|
||||
|
@ -681,14 +681,14 @@ static int uart_stm32_init(struct device *dev)
|
|||
|
||||
#ifdef USART_ISR_TEACK
|
||||
/* Wait until TEACK flag is set */
|
||||
while (!(LL_USART_IsActiveFlag_TEACK(UartInstance)))
|
||||
;
|
||||
while (!(LL_USART_IsActiveFlag_TEACK(UartInstance))) {
|
||||
}
|
||||
#endif /* !USART_ISR_TEACK */
|
||||
|
||||
#ifdef USART_ISR_REACK
|
||||
/* Wait until REACK flag is set */
|
||||
while (!(LL_USART_IsActiveFlag_REACK(UartInstance)))
|
||||
;
|
||||
while (!(LL_USART_IsActiveFlag_REACK(UartInstance))) {
|
||||
}
|
||||
#endif /* !USART_ISR_REACK */
|
||||
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue