tty: moxa: fix bit test in moxa_start()
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> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
48a7466f4d
commit
58112dfbfe
|
@ -1330,7 +1330,7 @@ static void moxa_start(struct tty_struct *tty)
|
||||||
if (ch == NULL)
|
if (ch == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!(ch->statusflags & TXSTOPPED))
|
if (!test_bit(TXSTOPPED, &ch->statusflags))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
MoxaPortTxEnable(ch);
|
MoxaPortTxEnable(ch);
|
||||||
|
|
Loading…
Reference in New Issue