Commit 87b8bed2 authored by fabio.estevam@freescale.com's avatar fabio.estevam@freescale.com Committed by Greg Kroah-Hartman

serial: mxs-auart: Index is unsigned

Fix the following warning when building with W=1 option:

drivers/tty/serial/mxs-auart.c: In function 'mxs_auart_tx_chars':
drivers/tty/serial/mxs-auart.c:272:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6833214
...@@ -253,7 +253,7 @@ static void mxs_auart_tx_chars(struct mxs_auart_port *s) ...@@ -253,7 +253,7 @@ static void mxs_auart_tx_chars(struct mxs_auart_port *s)
struct circ_buf *xmit = &s->port.state->xmit; struct circ_buf *xmit = &s->port.state->xmit;
if (auart_dma_enabled(s)) { if (auart_dma_enabled(s)) {
int i = 0; u32 i = 0;
int size; int size;
void *buffer = s->tx_dma_buf; void *buffer = s->tx_dma_buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment