Skip to content

Commit 696493b

Browse files
committed
driver,uart: do not panic when UART port not ready
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
1 parent 53b489c commit 696493b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/serial.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ int serial_putchar(io_port_t port, char c) {
218218

219219
do {
220220
rc = uart_putc(port, c);
221-
BUG_ON(rc < 0);
222221
} while (rc == -EAGAIN && retries--);
223222

224223
return rc;
@@ -230,7 +229,6 @@ int serial_write(io_port_t port, const char *buf, size_t len) {
230229

231230
do {
232231
rc = uart_puts(port, buf, len);
233-
BUG_ON(rc < 0);
234232
} while (rc == -EAGAIN && retries--);
235233

236234
return rc;

0 commit comments

Comments
 (0)