]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: moxa: fix bit test in moxa_start()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Mar 2012 10:05:00 +0000 (13:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:26:53 +0000 (09:26 -0700)
commit3fc869e8213e87c41f9c05be8bcfd2ebb17253f3
tree4de182b707b26b671e02da60b9364adb0640baf6
parentac51a34e78db88ef4392040097f82ce3cc28b666
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>
drivers/tty/moxa.c