summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-10-03 20:52:44 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 09:30:10 +0100
commit60acb623c9f9431e84485a10347dab7e4801b3e1 (patch)
tree11255b247918b56a454888400267d6145fc82ef1 /drivers/staging/dgnc
parent2d9920eca404c785483598980547ff3be58eddd9 (diff)
downloadblackbird-obmc-linux-60acb623c9f9431e84485a10347dab7e4801b3e1.tar.gz
blackbird-obmc-linux-60acb623c9f9431e84485a10347dab7e4801b3e1.zip
staging: dgnc: change style of NULL comparison
Change the NULL comparison style as warned by checkpatch. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index cdc78f80c918..a8d50a542ad5 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -1553,7 +1553,7 @@ static int dgnc_tty_chars_in_buffer(struct tty_struct *tty)
uint chars = 0;
unsigned long flags;
- if (tty == NULL)
+ if (!tty)
return 0;
un = tty->driver_data;
@@ -1658,7 +1658,7 @@ static int dgnc_tty_write_room(struct tty_struct *tty)
int ret = 0;
unsigned long flags;
- if (tty == NULL || dgnc_TmpWriteBuf == NULL)
+ if (!tty || !dgnc_TmpWriteBuf)
return 0;
un = tty->driver_data;
@@ -1739,7 +1739,7 @@ static int dgnc_tty_write(struct tty_struct *tty,
ushort tmask;
uint remain;
- if (tty == NULL || dgnc_TmpWriteBuf == NULL)
+ if (!tty || !dgnc_TmpWriteBuf)
return 0;
un = tty->driver_data;
OpenPOWER on IntegriCloud