]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] moxa: remove pointless check of 'tty' argument vs NULL
authorJesper Juhl <jesper.juhl@gmail.com>
Sun, 25 Jun 2006 12:47:53 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:08 +0000 (10:01 -0700)
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>
drivers/char/mxser.c

index 5ddbd5b2a4c11f579772dae185224143179661c9..2ad9dc80cae0fb13d6b8e446a32efa13380b8b03 100644 (file)
@@ -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;
        unsigned long flags;
 
-       if (!tty || !info->xmit_buf)
+       if (!info->xmit_buf)
                return (0);
 
        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;
        unsigned long flags;
 
-       if (!tty || !info->xmit_buf)
+       if (!info->xmit_buf)
                return;
 
        if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1)