]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/istallion.c
tty: Remove lots of NULL checks
[linux-2.6-omap-h63xx.git] / drivers / char / istallion.c
index 96ee1121acef3ed87a9077ede6b64980ec616f42..505d7a1f6b8cc39a37c0b9b3e0d04e06f796aba2 100644 (file)
@@ -1375,8 +1375,6 @@ static void stli_flushchars(struct tty_struct *tty)
        stli_txcookrealsize = 0;
        stli_txcooktty = NULL;
 
-       if (tty == NULL)
-               return;
        if (cooktty == NULL)
                return;
        if (tty != cooktty)
@@ -1732,8 +1730,6 @@ static void stli_settermios(struct tty_struct *tty, struct ktermios *old)
        struct ktermios *tiosp;
        asyport_t aport;
 
-       if (tty == NULL)
-               return;
        portp = tty->driver_data;
        if (portp == NULL)
                return;
@@ -1938,8 +1934,6 @@ static void stli_waituntilsent(struct tty_struct *tty, int timeout)
        struct stliport *portp;
        unsigned long tend;
 
-       if (tty == NULL)
-               return;
        portp = tty->driver_data;
        if (portp == NULL)
                return;