USB: visor and whiteheat: remove bogus termios change checks
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Mon, 9 Jul 2007 19:03:11 +0000 (12:03 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:41 +0000 (16:34 -0700)
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>
drivers/usb/serial/visor.c
drivers/usb/serial/whiteheat.c

index acd0eae3b146b3c43bc2d68a0cc12c9f71ada182..7d84a7647e81efeec0c025df2ecf783ade3b16aa 100644 (file)
@@ -948,14 +948,6 @@ static void visor_set_termios (struct usb_serial_port *port, struct ktermios *ol
        }
 
        cflag = port->tty->termios->c_cflag;
-       /* check that they really want us to change something */
-       if (old_termios) {
-               if ((cflag == old_termios->c_cflag) &&
-                   (RELEVANT_IFLAG(port->tty->termios->c_iflag) == RELEVANT_IFLAG(old_termios->c_iflag))) {
-                       dbg("%s - nothing to change...", __FUNCTION__);
-                       return;
-               }
-       }
 
        /* get the byte size */
        switch (cflag & CSIZE) {
index 8611ee56961391cdc55c8c92594b610782757490..cc8b44c08712c67c1c41448c18b17ff23950228a 100644 (file)
@@ -891,15 +891,6 @@ static void whiteheat_set_termios(struct usb_serial_port *port, struct ktermios
                goto exit;
        }
        
-       /* check that they really want us to change something */
-       if (old_termios) {
-               if ((port->tty->termios->c_cflag == old_termios->c_cflag) &&
-                   (port->tty->termios->c_iflag == old_termios->c_iflag)) {
-                       dbg("%s - nothing to change...", __FUNCTION__);
-                       goto exit;
-               }
-       }
-
        firm_setup_port(port);
 
 exit: