Skip to content

Commit

Permalink
tty: serial/crisv10.c: remove unnecessary null pointer check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cong Ding authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent 9ef20d5 commit f938f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/crisv10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f938f37

Please sign in to comment.