aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/synclink_gt.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2007-07-16 02:41:48 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:51 -0400
commitde1764af27520f6dfdac0ddf2209d78ddb9690d7 (patch)
tree124f3eb29239bb9eef109cd2d2fab1c8df829676 /drivers/char/synclink_gt.c
parent35426128adaacf8cdabc2482598252d488b7ccb9 (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_gt.c')
-rw-r--r--drivers/char/synclink_gt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 02b49bc00028..428b514201f4 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -144,8 +144,6 @@ MODULE_PARM_DESC(dosyncppp, "Enable synchronous net device, 0=disable 1=enable")
144/* 144/*
145 * tty support and callbacks 145 * tty support and callbacks
146 */ 146 */
147#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
148
149static struct tty_driver *serial_driver; 147static struct tty_driver *serial_driver;
150 148
151static int open(struct tty_struct *tty, struct file * filp); 149static int open(struct tty_struct *tty, struct file * filp);
@@ -823,12 +821,6 @@ static void set_termios(struct tty_struct *tty, struct ktermios *old_termios)
823 821
824 DBGINFO(("%s set_termios\n", tty->driver->name)); 822 DBGINFO(("%s set_termios\n", tty->driver->name));
825 823
826 /* just return if nothing has changed */
827 if ((tty->termios->c_cflag == old_termios->c_cflag)
828 && (RELEVANT_IFLAG(tty->termios->c_iflag)
829 == RELEVANT_IFLAG(old_termios->c_iflag)))
830 return;
831
832 change_params(info); 824 change_params(info);
833 825
834 /* Handle transition to B0 status */ 826 /* Handle transition to B0 status */