Browse Source

[PATCH] moxa: remove pointless check of 'tty' argument vs NULL

Remove pointless check of 'tty' argument vs NULL from moxa driver.

Signed-off-by: Jesper Juhl <jesper.juhl@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>
Jesper Juhl 19 years ago
parent
commit
8a7f7c9307
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/char/mxser.c

+ 2 - 2
drivers/char/mxser.c

@@ -1081,7 +1081,7 @@ static int mxser_write(struct tty_struct *tty, const unsigned char *buf, int cou
 	struct mxser_struct *info = tty->driver_data;
 	struct mxser_struct *info = tty->driver_data;
 	unsigned long flags;
 	unsigned long flags;
 
 
-	if (!tty || !info->xmit_buf)
+	if (!info->xmit_buf)
 		return (0);
 		return (0);
 
 
 	while (1) {
 	while (1) {
@@ -1117,7 +1117,7 @@ static void mxser_put_char(struct tty_struct *tty, unsigned char ch)
 	struct mxser_struct *info = tty->driver_data;
 	struct mxser_struct *info = tty->driver_data;
 	unsigned long flags;
 	unsigned long flags;
 
 
-	if (!tty || !info->xmit_buf)
+	if (!info->xmit_buf)
 		return;
 		return;
 
 
 	if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1)
 	if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1)