From: Sachin Kamat Date: Wed, 9 Oct 2013 10:28:24 +0000 (+0530) Subject: staging: dgap: dgap_fep5: Do not use 0 for NULL pointer X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fa5cd4cf1bd71ee8535cda0799fae40bb89a2243;p=linux-beck.git staging: dgap: dgap_fep5: Do not use 0 for NULL pointer Do not compare NULL pointer with 0. Signed-off-by: Sachin Kamat Cc: Lidza Louina Signed-off-by: Greg Kroah-Hartman --- 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",