uart: Change to call uart flush with void type conversion 20/289520/2
authorTaeminYeom <taemin.yeom@samsung.com>
Thu, 2 Mar 2023 07:18:22 +0000 (16:18 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Thu, 9 Mar 2023 06:17:19 +0000 (15:17 +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 3cd2e134c842f62732ec7788f04d49d866de5122..936f3c37346fe31e14da76172a0e1577b3fa25c2 100644 (file)
@@ -208,7 +208,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);