aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/hal_uart.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-12-14 13:13:29 -0800
committerJosh Blum <josh@joshknows.com>2010-12-14 13:13:29 -0800
commit01d5209e103a590dbcdaa51b7fecd2a9e161f558 (patch)
tree3c26cac1aaeaecf49cb5b7c35cfcb9fd25ad744f /firmware/microblaze/lib/hal_uart.c
parent546e877ea461404550f01a1066242c2f2610ad9d (diff)
parent42c8c0873c00e692eb88c54e7da4fcbabbd9a4b6 (diff)
downloaduhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.tar.gz
uhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.tar.bz2
uhd-01d5209e103a590dbcdaa51b7fecd2a9e161f558.zip
Merge branch 'zpu' into next
Diffstat (limited to 'firmware/microblaze/lib/hal_uart.c')
-rw-r--r--firmware/microblaze/lib/hal_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/microblaze/lib/hal_uart.c b/firmware/microblaze/lib/hal_uart.c
index 7836240fe..f0921f4f0 100644
--- a/firmware/microblaze/lib/hal_uart.c
+++ b/firmware/microblaze/lib/hal_uart.c
@@ -113,7 +113,7 @@ hal_uart_getc_timeout(hal_uart_name_t u)
int hal_uart_rx_flush(hal_uart_name_t u)
{
- char x;
+ char x = 0;
while(uart_regs[u].rxlevel) x = uart_regs[u].rxchar;
return x;
}