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/synclinkmp.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/synclinkmp.c')
-rw-r--r-- | drivers/char/synclinkmp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c index ef93d055bdd7..a65407b32079 100644 --- a/drivers/char/synclinkmp.c +++ b/drivers/char/synclinkmp.c | |||
@@ -135,8 +135,6 @@ typedef struct _SCADESC_EX | |||
135 | 135 | ||
136 | #define IO_PIN_SHUTDOWN_LIMIT 100 | 136 | #define IO_PIN_SHUTDOWN_LIMIT 100 |
137 | 137 | ||
138 | #define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK)) | ||
139 | |||
140 | struct _input_signal_events { | 138 | struct _input_signal_events { |
141 | int ri_up; | 139 | int ri_up; |
142 | int ri_down; | 140 | int ri_down; |
@@ -927,12 +925,6 @@ static void set_termios(struct tty_struct *tty, struct ktermios *old_termios) | |||
927 | printk("%s(%d):%s set_termios()\n", __FILE__,__LINE__, | 925 | printk("%s(%d):%s set_termios()\n", __FILE__,__LINE__, |
928 | tty->driver->name ); | 926 | tty->driver->name ); |
929 | 927 | ||
930 | /* just return if nothing has changed */ | ||
931 | if ((tty->termios->c_cflag == old_termios->c_cflag) | ||
932 | && (RELEVANT_IFLAG(tty->termios->c_iflag) | ||
933 | == RELEVANT_IFLAG(old_termios->c_iflag))) | ||
934 | return; | ||
935 | |||
936 | change_params(info); | 928 | change_params(info); |
937 | 929 | ||
938 | /* Handle transition to B0 status */ | 930 | /* Handle transition to B0 status */ |