summary refs log tree commit diff
path: root/drivers/tty
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 /drivers/tty
parentb413f00ab1a99ccb239fc5afd4b8e0c7ada6c9db (diff)
downloadlinux-a3096199226c2e4dc019f21c1bed6e96092d4a71.tar.gz
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>
Diffstat (limited to 'drivers/tty')
-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)
 	case TIOCMBIS:
 		return tty_tiocmset(tty, cmd, p);
 	case TIOCGICOUNT:
-		retval = tty_tiocgicount(tty, p);
-		/* For the moment allow fall through to the old method */
-        	if (retval != -EINVAL)
-			return retval;
-		break;
+		return tty_tiocgicount(tty, p);
 	case TCFLSH:
 		switch (arg) {
 		case TCIFLUSH: