diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-08-14 14:02:34 +0200 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 22:13:11 +0200 |
commit | 1607acaec38319c5e0b48a3586c00e667e920a0d (patch) | |
tree | 91d6e8c56a2345f636ffaab61c8a7837a4b2e702 | |
parent | tty: includecheck fix: drivers/char, vt.c (diff) | |
download | linux-1607acaec38319c5e0b48a3586c00e667e920a0d.tar.xz linux-1607acaec38319c5e0b48a3586c00e667e920a0d.zip |
tty: icom: bit and/or confusion?
Previously, if any bit other than CMD_SND_BREAK was set, CMD_SND_BREAK
was not unset.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/serial/icom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/icom.c b/drivers/serial/icom.c index cd1b6a45bb82..060f4e3d54c5 100644 --- a/drivers/serial/icom.c +++ b/drivers/serial/icom.c @@ -617,7 +617,7 @@ static void shutdown(struct icom_port *icom_port) * disable break condition */ cmdReg = readb(&icom_port->dram->CmdReg); - if ((cmdReg | CMD_SND_BREAK) == CMD_SND_BREAK) { + if (cmdReg & CMD_SND_BREAK) { writeb(cmdReg & ~CMD_SND_BREAK, &icom_port->dram->CmdReg); } } |