]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/char/synclinkmp.c
[PATCH] More !tty cleanups in drivers/char
[mirror_ubuntu-artful-kernel.git] / drivers / char / synclinkmp.c
index 8587401311155dd5abcb9e0bde00ed6e8a3493c2..21bf15ad998020cdb985eba98fa607bf6fefc406 100644 (file)
@@ -988,7 +988,7 @@ static int write(struct tty_struct *tty,
        if (sanity_check(info, tty->name, "write"))
                goto cleanup;
 
-       if (!tty || !info->tx_buf)
+       if (!info->tx_buf)
                goto cleanup;
 
        if (info->params.mode == MGSL_MODE_HDLC) {
@@ -1067,7 +1067,7 @@ static void put_char(struct tty_struct *tty, unsigned char ch)
        if (sanity_check(info, tty->name, "put_char"))
                return;
 
-       if (!tty || !info->tx_buf)
+       if (!info->tx_buf)
                return;
 
        spin_lock_irqsave(&info->lock,flags);