Skip to content

Commit

Permalink
[PATCH] moxa: remove pointless check of 'tty' argument vs NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 25, 2006
1 parent 56e139f commit 8a7f7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8a7f7c9

Please sign in to comment.