summaryrefslogtreecommitdiff
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-09 15:58:24 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-11 15:36:30 -0700
commitfa5cd4cf1bd71ee8535cda0799fae40bb89a2243 (patch)
treed69a5a608c90e43eab1207dc343d8c7bb2b17133 /drivers/staging/dgap
parent0b5aff00a7d715e308b6de469866446453ac03d8 (diff)
staging: dgap: dgap_fep5: Do not use 0 for NULL pointer
Do not compare NULL pointer with 0. 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/dgap')
-rw-r--r--drivers/staging/dgap/dgap_fep5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap_fep5.c b/drivers/staging/dgap/dgap_fep5.c
index 86e9aa663e65..794cf9db8b83 100644
--- a/drivers/staging/dgap/dgap_fep5.c
+++ b/drivers/staging/dgap/dgap_fep5.c
@@ -1245,7 +1245,7 @@ int dgap_param(struct tty_struct *tty)
return -ENXIO;
bs = ch->ch_bs;
- if (bs == 0)
+ if (!bs)
return -ENXIO;
DPR_PARAM(("param start: tdev: %x cflags: %x oflags: %x iflags: %x\n",