summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2013-01-16 22:30:43 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-18 01:20:09 (GMT)
commit9ef20d52e0cd0d6ab78cab13563b16496bdc6995 (patch)
tree97b6b5aa2537118d62c0de620cdc6eaf48522a7b /drivers/tty
parent5fe2123647c15089c3a905137bea87b16973c896 (diff)
downloadlinux-9ef20d52e0cd0d6ab78cab13563b16496bdc6995.tar.xz
tty: serial/68328serial.c: remove unnecessary null pointer check
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/68328serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c
index 641a5a4..4939947 100644
--- 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);