summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/crisv10.c
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2013-01-16 23:30:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-18 02:20:10 +0100
commitf938f3781fa877146236042341ddbcf06bc49f0a (patch)
tree3ad23d0abdfe3a4b5f3b7aeb17299999facbe469 /drivers/tty/serial/crisv10.c
parenttty: serial/68328serial.c: remove unnecessary null pointer check (diff)
downloadlinux-f938f3781fa877146236042341ddbcf06bc49f0a.tar.xz
linux-f938f3781fa877146236042341ddbcf06bc49f0a.zip
tty: serial/crisv10.c: remove unnecessary null pointer check
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>
Diffstat (limited to 'drivers/tty/serial/crisv10.c')
-rw-r--r--drivers/tty/serial/crisv10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c
index 45acf103433e..5f37c31e32bc 100644
--- 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