Skip to content

Commit 6dc7310

Browse files
Alan-Coxgregkh
authored andcommitted
USB: io_*: remove bogus termios no change checks
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent eb58c0c commit 6dc7310

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

‎drivers/usb/serial/io_edgeport.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,15 +1513,6 @@ static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old
15131513
}
15141514

15151515
cflag = tty->termios->c_cflag;
1516-
/* check that they really want us to change something */
1517-
if (old_termios) {
1518-
if (cflag == old_termios->c_cflag &&
1519-
tty->termios->c_iflag == old_termios->c_iflag) {
1520-
dbg("%s - nothing to change", __FUNCTION__);
1521-
return;
1522-
}
1523-
}
1524-
15251516
dbg("%s - clfag %08x iflag %08x", __FUNCTION__,
15261517
tty->termios->c_cflag, tty->termios->c_iflag);
15271518
if (old_termios) {

‎drivers/usb/serial/io_ti.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,14 +2544,6 @@ static void edge_set_termios (struct usb_serial_port *port, struct ktermios *old
25442544
}
25452545

25462546
cflag = tty->termios->c_cflag;
2547-
/* check that they really want us to change something */
2548-
if (old_termios) {
2549-
if (cflag == old_termios->c_cflag &&
2550-
tty->termios->c_iflag == old_termios->c_iflag) {
2551-
dbg ("%s - nothing to change", __FUNCTION__);
2552-
return;
2553-
}
2554-
}
25552547

25562548
dbg("%s - clfag %08x iflag %08x", __FUNCTION__,
25572549
tty->termios->c_cflag, tty->termios->c_iflag);

0 commit comments

Comments
 (0)