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
|
@ -98,8 +98,8 @@ static void uart_imx_poll_out(struct device *dev, unsigned char c)
|
|||
{
|
||||
UART_Type *uart = UART_STRUCT(dev);
|
||||
|
||||
while (!UART_GetStatusFlag(uart, uartStatusTxReady))
|
||||
;
|
||||
while (!UART_GetStatusFlag(uart, uartStatusTxReady)) {
|
||||
}
|
||||
UART_Putchar(uart, c);
|
||||
}
|
||||
|
||||
|
@ -107,8 +107,8 @@ static int uart_imx_poll_in(struct device *dev, unsigned char *c)
|
|||
{
|
||||
UART_Type *uart = UART_STRUCT(dev);
|
||||
|
||||
while (!UART_GetStatusFlag(uart, uartStatusRxDataReady))
|
||||
;
|
||||
while (!UART_GetStatusFlag(uart, uartStatusRxDataReady)) {
|
||||
}
|
||||
*c = UART_Getchar(uart);
|
||||
|
||||
if (UART_GetStatusFlag(uart, uartStatusRxOverrun)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue