]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/n_hdlc.c
IB/ipath: Provide I/O bus speeds for diagnostic purposes
[linux-2.6-omap-h63xx.git] / drivers / char / n_hdlc.c
index e8332f305d72a77b9e8d0579b8b222d5e66ea0ea..82bcfb9c839adb62a4cca24c10c55c20c8c72cf4 100644 (file)
@@ -229,7 +229,7 @@ static void n_hdlc_release(struct n_hdlc *n_hdlc)
        wake_up_interruptible (&tty->read_wait);
        wake_up_interruptible (&tty->write_wait);
 
-       if (tty != NULL && tty->disc_data == n_hdlc)
+       if (tty->disc_data == n_hdlc)
                tty->disc_data = NULL;  /* Break the tty->n_hdlc link */
 
        /* Release transmit and receive buffers */