Do not compare NULL pointer with 0.

Signed-off-by: Sachin Kamat <sachin.ka...@linaro.org>
Cc: Lidza Louina <lidza.lou...@gmail.com>
---
 drivers/staging/dgap/dgap_fep5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgap/dgap_fep5.c b/drivers/staging/dgap/dgap_fep5.c
index 86e9aa6..794cf9d 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",
-- 
1.7.9.5

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to