mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
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>
This commit is contained in:
parent
b413f00ab1
commit
a309619922
@ -2606,11 +2606,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||||||
case TIOCMBIS:
|
case TIOCMBIS:
|
||||||
return tty_tiocmset(tty, cmd, p);
|
return tty_tiocmset(tty, cmd, p);
|
||||||
case TIOCGICOUNT:
|
case TIOCGICOUNT:
|
||||||
retval = tty_tiocgicount(tty, p);
|
return tty_tiocgicount(tty, p);
|
||||||
/* For the moment allow fall through to the old method */
|
|
||||||
if (retval != -EINVAL)
|
|
||||||
return retval;
|
|
||||||
break;
|
|
||||||
case TCFLSH:
|
case TCFLSH:
|
||||||
switch (arg) {
|
switch (arg) {
|
||||||
case TCIFLUSH:
|
case TCIFLUSH:
|
||||||
|
Loading…
Reference in New Issue
Block a user