From b6b0073178d7cb16972bd6c4965c62b36082583d Mon Sep 17 00:00:00 2001 From: Resaec Date: Sat, 28 Apr 2018 00:55:28 +0200 Subject: [PATCH] minor style fixes --- exosphere/src/uart.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exosphere/src/uart.c b/exosphere/src/uart.c index 1b6da6578..7fe9bbc07 100644 --- a/exosphere/src/uart.c +++ b/exosphere/src/uart.c @@ -42,8 +42,7 @@ void uart_wait_idle(UartDevice dev, UartVendorStatus status) { } } -void uart_send(UartDevice dev, const void *buf, size_t len) -{ +void uart_send(UartDevice dev, const void *buf, size_t len) { volatile uart_t *uart = get_uart_device(dev); for (size_t i = 0; i < len; i++) { @@ -61,6 +60,6 @@ void uart_recv(UartDevice dev, void *buf, size_t len) { while (uart->UART_LSR & UART_LSR_RX_FIFO_EMPTY) { /* Wait until the RX FIFO isn't empty */ } - *((uint8_t *)buf + i) = uart->UART_THR_DLAB; + *((uint8_t *)buf + i) = uart->UART_THR_DLAB; } }