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:
5fe2123
)
tty: serial/68328serial.c: remove unnecessary null pointer check
author
Cong Ding
<dinggnu@gmail.com>
Wed, 16 Jan 2013 22:30:43 +0000
(23:30 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 01:20:09 +0000
(17:20 -0800)
The pointer info is dereferened in line 1009, so it is not necessary to check
null again in line 1012.
Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/68328serial.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/68328serial.c
b/drivers/tty/serial/68328serial.c
index 641a5a4d73d9072e9f972cd26ec1c3785ddeff73..49399470794d642b96a78d1dc537c60bbb49339c 100644
(file)
--- a/
drivers/tty/serial/68328serial.c
+++ b/
drivers/tty/serial/68328serial.c
@@
-1002,7
+1002,7
@@
static void rs_close(struct tty_struct *tty, struct file * filp)
m68328_uart *uart = &uart_addr[info->line];
unsigned long flags;
- if (
!info ||
serial_paranoia_check(info, tty->name, "rs_close"))
+ if (serial_paranoia_check(info, tty->name, "rs_close"))
return;
local_irq_save(flags);