diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-07 05:05:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 12:26:53 -0400 |
commit | 3fc869e8213e87c41f9c05be8bcfd2ebb17253f3 (patch) | |
tree | 4de182b707b26b671e02da60b9364adb0640baf6 | |
parent | ac51a34e78db88ef4392040097f82ce3cc28b666 (diff) |
tty: moxa: fix bit test in moxa_start()
commit 58112dfbfe02d803566a2c6c8bd97b5fa3c62cdc upstream.
This is supposed to be doing a shift before the comparison instead of
just doing a bitwise AND directly. The current code means the start()
just returns without doing anything.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/moxa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c index ba679ce0a77..8f82f7ab354 100644 --- a/drivers/tty/moxa.c +++ b/drivers/tty/moxa.c | |||
@@ -1330,7 +1330,7 @@ static void moxa_start(struct tty_struct *tty) | |||
1330 | if (ch == NULL) | 1330 | if (ch == NULL) |
1331 | return; | 1331 | return; |
1332 | 1332 | ||
1333 | if (!(ch->statusflags & TXSTOPPED)) | 1333 | if (!test_bit(TXSTOPPED, &ch->statusflags)) |
1334 | return; | 1334 | return; |
1335 | 1335 | ||
1336 | MoxaPortTxEnable(ch); | 1336 | MoxaPortTxEnable(ch); |