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

staging: dgap: dgap_fep5: Do not use 0 for NULL pointer

Do not compare NULL pointer with 0.
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 0b5aff00
......@@ -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",
......
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