projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d9920e
)
staging: dgnc: change style of NULL comparison
author
Sudip Mukherjee
<
[email protected]
>
Sat, 3 Oct 2015 15:22:44 +0000
(20:52 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 4 Oct 2015 08:30:10 +0000
(09:30 +0100)
Change the NULL comparison style as warned by checkpatch.
Signed-off-by: Sudip Mukherjee <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/dgnc/dgnc_tty.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_tty.c
b/drivers/staging/dgnc/dgnc_tty.c
index cdc78f80c9186b3357da99fdfb5437b823a3ae38..a8d50a542ad5fc6da71440745980830159b33477 100644
(file)
--- 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;