diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-09-12 13:49:44 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-10-13 06:50:43 +0200 |
commit | f82fc0fedf28ba09b0abd0533202447846d48fb9 (patch) | |
tree | daed890d0869e1d5d8052ad442031f9cc29b4d74 /drivers/char/pcmcia/synclink_cs.c | |
parent | complete ->[sg]et_serial() switchover (diff) | |
download | linux-f82fc0fedf28ba09b0abd0533202447846d48fb9.tar.xz linux-f82fc0fedf28ba09b0abd0533202447846d48fb9.zip |
synclink: reduce pointless checks in ->ioctl()
it's never getting called with TIOC[SG]SERIAL anymore (nor has
it ever supported those, while we are at it)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char/pcmcia/synclink_cs.c')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index 66b04194aa9f..82f9a6a814ae 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c @@ -2237,8 +2237,7 @@ static int mgslpc_ioctl(struct tty_struct *tty, if (mgslpc_paranoia_check(info, tty->name, "mgslpc_ioctl")) return -ENODEV; - if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && - (cmd != TIOCMIWAIT)) { + if (cmd != TIOCMIWAIT) { if (tty_io_error(tty)) return -EIO; } |