mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 23:23:52 +08:00
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>
This commit is contained in:
parent
0b5aff00a7
commit
fa5cd4cf1b
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user