From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>, <cyclades@netcom.com>
Cc: <bentson@grieg.seaslug.org>
Subject: [PATCH] Char: serial167, remove useless tty check
Date: Sun, 1 Oct 2006 01:23:59 +0200 (CEST) [thread overview]
Message-ID: <345345345435@wsc.cz> (raw)
serial167, remove useless tty check
tty is dereferenced before it is checked to be nonNULL. Remove such check.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
---
commit 00bed6b2fb10dd07cdde1f6ebe8066058b748ce1
tree b69d8cc230471d1e5dfa09d273960997deb42eba
parent 810378cbe277c73f99219e343f54e782459b6b61
author Jiri Slaby <jirislaby@gmail.com> Sun, 01 Oct 2006 01:12:34 +0200
committer Jiri Slaby <xslaby@anemoi.localdomain> Sun, 01 Oct 2006 01:12:34 +0200
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 48dae5d..f4809c8 100644
--- a/drivers/char/serial167.c
+++ b/drivers/char/serial167.c
@@ -1121,7 +1121,7 @@ #endif
if (serial_paranoia_check(info, tty->name, "cy_put_char"))
return;
- if (!tty || !info->xmit_buf)
+ if (!info->xmit_buf)
return;
local_irq_save(flags);
@@ -1187,7 +1187,7 @@ #endif
return 0;
}
- if (!tty || !info->xmit_buf){
+ if (!info->xmit_buf){
return 0;
}
reply other threads:[~2006-09-30 23:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=345345345435@wsc.cz \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=cyclades@netcom.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.