drivers: fix integer as NULL pointer warnings

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Harvey Harrison
2008-04-28 16:50:04 -07:00
committed by Linus Torvalds
parent a6a3a17b7f
commit a01e035ebb
6 changed files with 6 additions and 6 deletions

View 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 */