aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-06-25 08:47:53 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:08 -0400
commit8a7f7c9307962ffdf81561ec8742fde1fad9fe10 (patch)
treecd2a2e0764a3e57a6ea99e0967379031f68ea3d6 /drivers
parent56e139f62bd7b82430cfcf01fcbd42e1d84fb738 (diff)
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/mxser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c
index 5ddbd5b2a4c1..2ad9dc80cae0 100644
--- a/drivers/char/mxser.c
+++ b/drivers/char/mxser.c
@@ -1081,7 +1081,7 @@ static int mxser_write(struct tty_struct *tty, const unsigned char *buf, int cou
1081 struct mxser_struct *info = tty->driver_data; 1081 struct mxser_struct *info = tty->driver_data;
1082 unsigned long flags; 1082 unsigned long flags;
1083 1083
1084 if (!tty || !info->xmit_buf) 1084 if (!info->xmit_buf)
1085 return (0); 1085 return (0);
1086 1086
1087 while (1) { 1087 while (1) {
@@ -1117,7 +1117,7 @@ static void mxser_put_char(struct tty_struct *tty, unsigned char ch)
1117 struct mxser_struct *info = tty->driver_data; 1117 struct mxser_struct *info = tty->driver_data;
1118 unsigned long flags; 1118 unsigned long flags;
1119 1119
1120 if (!tty || !info->xmit_buf) 1120 if (!info->xmit_buf)
1121 return; 1121 return;
1122 1122
1123 if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) 1123 if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1)