]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
serial: mxs-auart: Fix typo in sanity check
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 28 Dec 2012 23:16:33 +0000 (00:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 05:57:44 +0000 (21:57 -0800)
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>
drivers/tty/serial/mxs-auart.c

index 6db23b035efe0766dcc99e8bddb0a301dd458217..fa31bc38b105b04d93055e8aadfa86ef7d1af9bd 100644 (file)
@@ -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 */