Commit 968a4e92 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

staging: dgnc: dgnc_tty: Do not use 0 for NULL pointer

Do not use 0 for NULL pointer.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aad7b60b
...@@ -520,7 +520,7 @@ void dgnc_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *buf, int ...@@ -520,7 +520,7 @@ void dgnc_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *buf, int
/* /*
* Loop while data remains. * 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 * Determine the amount of available space left in the
* buffer. If there's none, wait until some appears. * buffer. If there's none, wait until some appears.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment