Skip to content

Commit

Permalink
serial: mxs-auart: Fix typo in sanity check
Browse files Browse the repository at this point in the history
Detected by cppcheck:
[others/linux/drivers/tty/serial/mxs-auart.c:553]: (style) Same expression on both sides of '||'.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Thomas Jarosch authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent e759d7c commit 81a7d77
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 @@ -550,7 +550,7 @@ static int mxs_auart_dma_init(struct mxs_auart_port *s)
return 0;

/* We do not get the right DMA channels. */
if (s->dma_channel_rx == -1 || s->dma_channel_rx == -1)
if (s->dma_channel_rx == -1 || s->dma_channel_tx == -1)
return -EINVAL;

/* init for RX */
Expand Down

0 comments on commit 81a7d77

Please sign in to comment.