projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef20d5
)
tty: serial/crisv10.c: remove unnecessary null pointer check
author
Cong Ding
<dinggnu@gmail.com>
Wed, 16 Jan 2013 22:30:44 +0000
(23:30 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 01:20:10 +0000
(17:20 -0800)
The pointer tty is dereferened in line 3135, so it is not necessary to check
null again in line 3140.
Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/crisv10.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/crisv10.c
b/drivers/tty/serial/crisv10.c
index
45acf10
..
5f37c31
100644
(file)
--- a/
drivers/tty/serial/crisv10.c
+++ b/
drivers/tty/serial/crisv10.c
@@
-3122,7
+3122,7
@@
static int rs_raw_write(struct tty_struct *tty,
/* first some sanity checks */
- if (!
tty || !
info->xmit.buf)
+ if (!info->xmit.buf)
return 0;
#ifdef SERIAL_DEBUG_DATA