diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-09-12 07:49:44 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-10-13 00:50:43 -0400 |
commit | f82fc0fedf28ba09b0abd0533202447846d48fb9 (patch) | |
tree | daed890d0869e1d5d8052ad442031f9cc29b4d74 /drivers/tty/synclink_gt.c | |
parent | 930236a30897532653a61ed22ae7eca13154accd (diff) | |
download | op-kernel-dev-f82fc0fedf28ba09b0abd0533202447846d48fb9.zip op-kernel-dev-f82fc0fedf28ba09b0abd0533202447846d48fb9.tar.gz |
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/tty/synclink_gt.c')
-rw-r--r-- | drivers/tty/synclink_gt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index a940865..b8287a0 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -1029,8 +1029,7 @@ static int ioctl(struct tty_struct *tty, return -ENODEV; DBGINFO(("%s ioctl() cmd=%08X\n", info->device_name, cmd)); - if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && - (cmd != TIOCMIWAIT)) { + if (cmd != TIOCMIWAIT) { if (tty_io_error(tty)) return -EIO; } |