Skip to contentSkip to conversation

Char: serial167, remove useless tty check

PATCH New Jiri Slaby 1 participant 1 message Sep 30, 2006 Char and misc drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 Char: serial167, remove useless tty check

serial167, remove useless tty check

tty is dereferenced before it is checked to be nonNULL. Remove such check.

---
commit 00bed6b2fb10dd07cdde1f6ebe8066058b748ce1
tree b69d8cc230471d1e5dfa09d273960997deb42eba
parent 810378cbe277c73f99219e343f54e782459b6b61
author Jiri Slaby <[email protected]> Sun, 01 Oct 2006 01:12:34 +0200 committer Jiri Slaby <[email protected]> Sun, 01 Oct 2006 01:12:34 +0200

 drivers/char/serial167.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/serial167.c +2 -2
index 48dae5d..f4809c8 100644
@@ -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;
     }