From: Sachin Kamat Date: Wed, 9 Oct 2013 10:28:28 +0000 (+0530) Subject: staging: dgnc: dgnc_tty: Do not use 0 for NULL pointer X-Git-Tag: next-20131017~19^2~122 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=968a4e9208c4f8e97dbd00346c25af7cfec05c15;p=karo-tx-linux.git staging: dgnc: dgnc_tty: Do not use 0 for NULL pointer Do not use 0 for NULL pointer. Signed-off-by: Sachin Kamat Cc: Lidza Louina Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index c6fee11632f7..a6c6aba82d72 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -520,7 +520,7 @@ void dgnc_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *buf, int /* * Loop while data remains. */ - while (nbuf > 0 && ch->ch_sniff_buf != 0) { + while (nbuf > 0 && ch->ch_sniff_buf) { /* * Determine the amount of available space left in the * buffer. If there's none, wait until some appears.