diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2007-07-16 02:41:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:51 -0400 |
commit | de1764af27520f6dfdac0ddf2209d78ddb9690d7 (patch) | |
tree | 124f3eb29239bb9eef109cd2d2fab1c8df829676 /drivers/char/synclink.c | |
parent | 35426128adaacf8cdabc2482598252d488b7ccb9 (diff) |
synclink: remove bogus 'no change' termios optimisation from synclink drivers
Again this check is wrong now, and un-needed
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/synclink.c')
-rw-r--r-- | drivers/char/synclink.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c index f02a0795983f..f53e51ddb9d7 100644 --- a/drivers/char/synclink.c +++ b/drivers/char/synclink.c | |||
@@ -160,8 +160,6 @@ typedef struct _DMABUFFERENTRY | |||
160 | 160 | ||
161 | #define IO_PIN_SHUTDOWN_LIMIT 100 | 161 | #define IO_PIN_SHUTDOWN_LIMIT 100 |
162 | 162 | ||
163 | #define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK)) | ||
164 | |||
165 | struct _input_signal_events { | 163 | struct _input_signal_events { |
166 | int ri_up; | 164 | int ri_up; |
167 | int ri_down; | 165 | int ri_down; |
@@ -3064,12 +3062,6 @@ static void mgsl_set_termios(struct tty_struct *tty, struct ktermios *old_termio | |||
3064 | printk("%s(%d):mgsl_set_termios %s\n", __FILE__,__LINE__, | 3062 | printk("%s(%d):mgsl_set_termios %s\n", __FILE__,__LINE__, |
3065 | tty->driver->name ); | 3063 | tty->driver->name ); |
3066 | 3064 | ||
3067 | /* just return if nothing has changed */ | ||
3068 | if ((tty->termios->c_cflag == old_termios->c_cflag) | ||
3069 | && (RELEVANT_IFLAG(tty->termios->c_iflag) | ||
3070 | == RELEVANT_IFLAG(old_termios->c_iflag))) | ||
3071 | return; | ||
3072 | |||
3073 | mgsl_change_params(info); | 3065 | mgsl_change_params(info); |
3074 | 3066 | ||
3075 | /* Handle transition to B0 status */ | 3067 | /* Handle transition to B0 status */ |