]> err.no Git - linux-2.6/blobdiff - drivers/char/n_hdlc.c
random: remove cacheline alignment for locks
[linux-2.6] / drivers / char / n_hdlc.c
index 82bcfb9c839adb62a4cca24c10c55c20c8c72cf4..06803ed5568ccbad5c0a2c470d5c060d13b82dfc 100644 (file)
@@ -501,7 +501,7 @@ static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data,
                        __FILE__,__LINE__, count);
                
        /* This can happen if stuff comes in on the backup tty */
-       if (n_hdlc == 0 || tty != n_hdlc->tty)
+       if (!n_hdlc || tty != n_hdlc->tty)
                return;
                
        /* verify line is using HDLC discipline */