diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-10-04 05:15:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:13 -0400 |
commit | d321765f7cbc2dc0683374c91bb3720d57331d37 (patch) | |
tree | 2f280c34d93a6be0c866da4cbb9daeb6004e38d7 | |
parent | b3218a79aa3d58b975b066c300153a8520f7051c (diff) |
[PATCH] Char: serial167, remove useless tty check
serial167, remove useless tty check
tty is dereferenced before it is checked to be non-NULL. Remove such
check.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/char/serial167.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index 48dae5d68dac..f4809c8183cc 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -1121,7 +1121,7 @@ cy_put_char(struct tty_struct *tty, unsigned char ch) | |||
1121 | if (serial_paranoia_check(info, tty->name, "cy_put_char")) | 1121 | if (serial_paranoia_check(info, tty->name, "cy_put_char")) |
1122 | return; | 1122 | return; |
1123 | 1123 | ||
1124 | if (!tty || !info->xmit_buf) | 1124 | if (!info->xmit_buf) |
1125 | return; | 1125 | return; |
1126 | 1126 | ||
1127 | local_irq_save(flags); | 1127 | local_irq_save(flags); |
@@ -1187,7 +1187,7 @@ cy_write(struct tty_struct * tty, | |||
1187 | return 0; | 1187 | return 0; |
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | if (!tty || !info->xmit_buf){ | 1190 | if (!info->xmit_buf){ |
1191 | return 0; | 1191 | return 0; |
1192 | } | 1192 | } |
1193 | 1193 | ||