diff options
| author | Cong Ding <dinggnu@gmail.com> | 2013-01-16 17:30:44 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 20:20:10 -0500 |
| commit | f938f3781fa877146236042341ddbcf06bc49f0a (patch) | |
| tree | 3ad23d0abdfe3a4b5f3b7aeb17299999facbe469 | |
| parent | 9ef20d52e0cd0d6ab78cab13563b16496bdc6995 (diff) | |
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>
| -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, | |||
| 3122 | 3122 | ||
| 3123 | /* first some sanity checks */ | 3123 | /* first some sanity checks */ |
| 3124 | 3124 | ||
| 3125 | if (!tty || !info->xmit.buf) | 3125 | if (!info->xmit.buf) |
| 3126 | return 0; | 3126 | return 0; |
| 3127 | 3127 | ||
| 3128 | #ifdef SERIAL_DEBUG_DATA | 3128 | #ifdef SERIAL_DEBUG_DATA |
