aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-09-12 18:37:18 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-10-13 00:50:47 -0400
commita3096199226c2e4dc019f21c1bed6e96092d4a71 (patch)
treeee7459664622cb6610c0b74a80d865e1e871e7c8
parentb413f00ab1a99ccb239fc5afd4b8e0c7ada6c9db (diff)
remove fallback to drivers for TIOCGICOUNT
none of them handles it anyway. Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/tty/tty_io.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index ccc0055b2dfc..1a55c3e20299 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -2606,11 +2606,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
2606 case TIOCMBIS: 2606 case TIOCMBIS:
2607 return tty_tiocmset(tty, cmd, p); 2607 return tty_tiocmset(tty, cmd, p);
2608 case TIOCGICOUNT: 2608 case TIOCGICOUNT:
2609 retval = tty_tiocgicount(tty, p); 2609 return tty_tiocgicount(tty, p);
2610 /* For the moment allow fall through to the old method */
2611 if (retval != -EINVAL)
2612 return retval;
2613 break;
2614 case TCFLSH: 2610 case TCFLSH:
2615 switch (arg) { 2611 switch (arg) {
2616 case TCIFLUSH: 2612 case TCIFLUSH: