diff options
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/udbg_16550.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index 6e7c4923b5ea..411116c38da4 100644 --- a/arch/powerpc/kernel/udbg_16550.c +++ b/arch/powerpc/kernel/udbg_16550.c | |||
@@ -69,8 +69,12 @@ static void udbg_uart_putc(char c) | |||
69 | 69 | ||
70 | static int udbg_uart_getc_poll(void) | 70 | static int udbg_uart_getc_poll(void) |
71 | { | 71 | { |
72 | if (!udbg_uart_in || !(udbg_uart_in(UART_LSR) & LSR_DR)) | 72 | if (!udbg_uart_in) |
73 | return -1; | ||
74 | |||
75 | if (!(udbg_uart_in(UART_LSR) & LSR_DR)) | ||
73 | return udbg_uart_in(UART_RBR); | 76 | return udbg_uart_in(UART_RBR); |
77 | |||
74 | return -1; | 78 | return -1; |
75 | } | 79 | } |
76 | 80 | ||