diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-09 15:58:28 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-11 15:36:31 -0700 |
commit | 968a4e9208c4f8e97dbd00346c25af7cfec05c15 (patch) | |
tree | edc8b9a6e3d68ad779f2bd6353a6db0ddfc25990 /drivers/staging/dgnc | |
parent | aad7b60bf1b402913311f2cc4899e691356ea9a2 (diff) | |
download | blackbird-obmc-linux-968a4e9208c4f8e97dbd00346c25af7cfec05c15.tar.gz blackbird-obmc-linux-968a4e9208c4f8e97dbd00346c25af7cfec05c15.zip |
staging: dgnc: dgnc_tty: Do not use 0 for NULL pointer
Do not use 0 for NULL pointer.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. |