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>
This commit is contained in:
Cong Ding 2013-01-16 23:30:44 +01:00 committed by Greg Kroah-Hartman
parent 9ef20d52e0
commit f938f3781f

View File

@ -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