Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
6dc73102 eb58c0c5

-17
-9
drivers/usb/serial/io_edgeport.c
··· 1513 1513 } 1514 1514 1515 1515 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 - 1525 1516 dbg("%s - clfag %08x iflag %08x", __FUNCTION__, 1526 1517 tty->termios->c_cflag, tty->termios->c_iflag); 1527 1518 if (old_termios) {
-8
drivers/usb/serial/io_ti.c
··· 2544 2544 } 2545 2545 2546 2546 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 - } 2555 2547 2556 2548 dbg("%s - clfag %08x iflag %08x", __FUNCTION__, 2557 2549 tty->termios->c_cflag, tty->termios->c_iflag);