From: Al Viro Date: Wed, 12 Sep 2018 22:37:18 +0000 (-0400) Subject: remove fallback to drivers for TIOCGICOUNT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3096199226c2e4dc019f21c1bed6e96092d4a71;p=people%2Fms%2Flinux.git remove fallback to drivers for TIOCGICOUNT none of them handles it anyway. Reviewed-by: Johan Hovold Signed-off-by: Al Viro --- 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: