Skip to content

Commit 640a2ad

Browse files
ndrs-pstcarlescufi
authored andcommitted
drivers: serial: ra8_sci_b: adjust return usage in void functions
For code clarity, this commit adjusts the use of `return` statements in functions with a void return type by: - Remove unnecessary `return` statements when they don't affect control flow. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent 6269185 commit 640a2ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/serial/uart_renesas_ra8_sci_b.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,15 +458,15 @@ static inline void async_rx_disabled(const struct device *dev)
458458
struct uart_event event = {
459459
.type = UART_RX_DISABLED,
460460
};
461-
return async_user_callback(dev, &event);
461+
async_user_callback(dev, &event);
462462
}
463463

464464
static inline void async_request_rx_buffer(const struct device *dev)
465465
{
466466
struct uart_event event = {
467467
.type = UART_RX_BUF_REQUEST,
468468
};
469-
return async_user_callback(dev, &event);
469+
async_user_callback(dev, &event);
470470
}
471471

472472
static inline void async_rx_ready(const struct device *dev)

0 commit comments

Comments
 (0)