Commit eb58c0c5 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

USB: mos7720: remove bogus no termios change check

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9a64f251
...@@ -1238,16 +1238,6 @@ static void mos7720_set_termios(struct usb_serial_port *port, ...@@ -1238,16 +1238,6 @@ static void mos7720_set_termios(struct usb_serial_port *port,
return; return;
} }
/* check that they really want us to change something */
if (old_termios) {
if ((cflag == old_termios->c_cflag) &&
(RELEVANT_IFLAG(tty->termios->c_iflag) ==
RELEVANT_IFLAG(old_termios->c_iflag))) {
dbg("Nothing to change");
return;
}
}
dbg("%s - clfag %08x iflag %08x", __FUNCTION__, dbg("%s - clfag %08x iflag %08x", __FUNCTION__,
tty->termios->c_cflag, tty->termios->c_cflag,
RELEVANT_IFLAG(tty->termios->c_iflag)); RELEVANT_IFLAG(tty->termios->c_iflag));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment