Messages in this thread Patch in this message | | | From | Jesper Juhl <> | Subject | [PATCH 2/3] moxa: remove pointless check of 'tty' argument vs NULL | Date | Mon, 15 May 2006 23:57:35 +0200 |
| |
Remove pointless check of 'tty' argument vs NULL from moxa driver.
(applies on top of patch 1/3)
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> ---
drivers/char/mxser.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.17-rc4-mm1/drivers/char/mxser.c.1 2006-05-15 22:33:49.000000000 +0200 +++ linux-2.6.17-rc4-mm1/drivers/char/mxser.c 2006-05-15 22:34:38.000000000 +0200 @@ -1081,7 +1081,7 @@ static int mxser_write(struct tty_struct 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_st 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)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |