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-17 17:20:10 -0800
commitf938f3781fa877146236042341ddbcf06bc49f0a (patch)
tree3ad23d0abdfe3a4b5f3b7aeb17299999facbe469 /drivers/tty/serial/crisv10.c
parent9ef20d52e0cd0d6ab78cab13563b16496bdc6995 (diff)
downloadop-kernel-dev-f938f3781fa877146236042341ddbcf06bc49f0a.zip
op-kernel-dev-f938f3781fa877146236042341ddbcf06bc49f0a.tar.gz
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 45acf10..5f37c31 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
OpenPOWER on IntegriCloud