Skip to content

Commit

Permalink
serial: mxs-auart: Index is unsigned
Browse files Browse the repository at this point in the history
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: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
fabio.estevam@freescale.com authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent a683321 commit 87b8bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/mxs-auart.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void mxs_auart_tx_chars(struct mxs_auart_port *s)
struct circ_buf *xmit = &s->port.state->xmit;

if (auart_dma_enabled(s)) {
int i = 0;
u32 i = 0;
int size;
void *buffer = s->tx_dma_buf;

Expand Down

0 comments on commit 87b8bed

Please sign in to comment.