diff --git a/drivers/serial/uart_nrfx_uart.c b/drivers/serial/uart_nrfx_uart.c index 4024e6c6a80..3a79ed58f2b 100644 --- a/drivers/serial/uart_nrfx_uart.c +++ b/drivers/serial/uart_nrfx_uart.c @@ -280,7 +280,7 @@ static void uart_nrfx_poll_out(struct device *dev, unsigned char c) */ k_msleep(1); if (--safety_cnt == 0) { - return; + break; } } } else { diff --git a/drivers/serial/uart_nrfx_uarte.c b/drivers/serial/uart_nrfx_uarte.c index 79ede11a6fc..dcf6bf680e5 100644 --- a/drivers/serial/uart_nrfx_uarte.c +++ b/drivers/serial/uart_nrfx_uarte.c @@ -1030,7 +1030,7 @@ static void uarte_nrfx_poll_out(struct device *dev, unsigned char c) */ k_msleep(1); if (--safety_cnt == 0) { - return; + break; } } } else {