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:
d7f549f
)
Char: mxser, 0 to NULL in pointer
author
Jiri Slaby
<jirislaby@gmail.com>
Thu, 7 Feb 2008 08:16:43 +0000
(
00:16
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:34 +0000
(08:42 -0800)
Don't test a pointer against 0. Use NULL instead.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Reviewed-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser_new.c
patch
|
blob
|
history
diff --git
a/drivers/char/mxser_new.c
b/drivers/char/mxser_new.c
index 0b25457cda051bc18d0b7591f054624b1fe10666..d2dcc546cc7568fc563e4616ba0d1be3a828df1c 100644
(file)
--- a/
drivers/char/mxser_new.c
+++ b/
drivers/char/mxser_new.c
@@
-2153,7
+2153,7
@@
static void mxser_transmit_chars(struct mxser_port *port)
return;
}
- if (port->xmit_buf ==
0
)
+ if (port->xmit_buf ==
NULL
)
return;
if ((port->xmit_cnt <= 0) || port->tty->stopped ||