diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-03-07 13:05:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 10:31:35 -0700 |
commit | d3abff4f339019cd208ebefa35ab9b7fcaad93b1 (patch) | |
tree | 1900fa533108268eaef028eddb5fa6021011e11e | |
parent | e484ce645b87df21fcaf8a22453ecff0cb664c09 (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 d15a071b1a5..0174d2d2a48 100644 --- a/drivers/tty/moxa.c +++ b/drivers/tty/moxa.c @@ -1331,7 +1331,7 @@ static void moxa_start(struct tty_struct *tty) if (ch == NULL) return; - if (!(ch->statusflags & TXSTOPPED)) + if (!test_bit(TXSTOPPED, &ch->statusflags)) return; MoxaPortTxEnable(ch); |