diff options
author | Cong Ding <dinggnu@gmail.com> | 2013-01-16 23:30:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 17:20:10 -0800 |
commit | f938f3781fa877146236042341ddbcf06bc49f0a (patch) | |
tree | 3ad23d0abdfe3a4b5f3b7aeb17299999facbe469 /drivers/tty/serial/crisv10.c | |
parent | 9ef20d52e0cd0d6ab78cab13563b16496bdc6995 (diff) | |
download | blackbird-obmc-linux-f938f3781fa877146236042341ddbcf06bc49f0a.tar.gz blackbird-obmc-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.c | 2 |
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 |