OSDN Git Service

tty: moxa: fix bit test in moxa_start()
[android-x86/kernel.git] / drivers / tty / moxa.c
index 4a26323..8a8d044 100644 (file)
@@ -1330,7 +1330,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);