Commit f938f378 authored by Cong Ding's avatar Cong Ding Committed by Greg Kroah-Hartman

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: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9ef20d52
...@@ -3122,7 +3122,7 @@ static int rs_raw_write(struct tty_struct *tty, ...@@ -3122,7 +3122,7 @@ static int rs_raw_write(struct tty_struct *tty,
/* first some sanity checks */ /* first some sanity checks */
if (!tty || !info->xmit.buf) if (!info->xmit.buf)
return 0; return 0;
#ifdef SERIAL_DEBUG_DATA #ifdef SERIAL_DEBUG_DATA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment