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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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