]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/mxser.c
tty: Remove lots of NULL checks
[linux-2.6-omap-h63xx.git] / drivers / char / mxser.c
index 308cb6014002d157b078f6eb6a65ac18d2fd1b0d..8beef50f95a0929190e8321c49910f5c4b581ca0 100644 (file)
@@ -616,9 +616,6 @@ static int mxser_set_baud(struct tty_struct *tty, long newspd)
        int quot = 0, baud;
        unsigned char cval;
 
-       if (!tty->termios)
-               return -1;
-
        if (!info->ioaddr)
                return -1;
 
@@ -688,8 +685,6 @@ static int mxser_change_speed(struct tty_struct *tty,
        int ret = 0;
        unsigned char status;
 
-       if (!tty->termios)
-               return ret;
        cflag = tty->termios->c_cflag;
        if (!info->ioaddr)
                return ret;