uart: change to call uart flush with void return type 67/289167/1
authorTaeminYeom <taemin.yeom@samsung.com>
Thu, 2 Mar 2023 07:18:22 +0000 (16:18 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Thu, 2 Mar 2023 07:18:22 +0000 (16:18 +0900)
In commit e14fc739d7de ("uart: Add nonblocking IO and assorted functions")
peripheral_uart_flush function's return type was changed void to int
And, other functions using it were changed to call it with (void) type coversion
because previous code didn't check the return of flush function.
But in close function, it was ommited so add it.

Change-Id: I0f89fc71d8c4bd76a3768f2bdc96cfd52a10c2ff
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
src/peripheral_uart.c

index dcc6f73..fff6deb 100644 (file)
@@ -212,7 +212,7 @@ int peripheral_uart_close(peripheral_uart_h uart)
        RETVM_IF(!__is_feature_supported(), PERIPHERAL_ERROR_NOT_SUPPORTED, "UART feature is not supported");
        RETVM_IF(uart == NULL, PERIPHERAL_ERROR_INVALID_PARAMETER, "uart handle is NULL");
 
-       peripheral_uart_flush(uart);
+       (void)peripheral_uart_flush(uart);
 
        cleanup_handlep(&uart);