lpc43xx: fix some compile warnings

This commit is contained in:
Grissiom 2015-01-07 11:13:13 +08:00
parent f7415e595e
commit 22938a93ef
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ static const struct rt_uart_ops lpc_uart_ops =
static void _do_uart_isr(struct rt_serial_device *sdev) static void _do_uart_isr(struct rt_serial_device *sdev)
{ {
struct lpc_uart *uart; struct lpc_uart *uart;
volatile uint32_t intsrc, temp; uint32_t intsrc;
uart = sdev->parent.user_data; uart = sdev->parent.user_data;
@ -102,7 +102,7 @@ static void _do_uart_isr(struct rt_serial_device *sdev)
/* Receive an error data */ /* Receive an error data */
if (intsrc & UART_LSR_PE) if (intsrc & UART_LSR_PE)
{ {
temp = uart->USART->RBR; uart->USART->RBR;
} }
break; break;
case UART_IIR_INTID_RDA: case UART_IIR_INTID_RDA: