kill capinc_tty_ioctl()
NULL ->ioctl() in tty_operations is treated as "returns -ENOIOCTLCMD"... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
7765435030
commit
864e880de5
@ -1155,12 +1155,6 @@ static int capinc_tty_chars_in_buffer(struct tty_struct *tty)
|
|||||||
return mp->outbytes;
|
return mp->outbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int capinc_tty_ioctl(struct tty_struct *tty,
|
|
||||||
unsigned int cmd, unsigned long arg)
|
|
||||||
{
|
|
||||||
return -ENOIOCTLCMD;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void capinc_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
|
static void capinc_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
|
||||||
{
|
{
|
||||||
pr_debug("capinc_tty_set_termios\n");
|
pr_debug("capinc_tty_set_termios\n");
|
||||||
@ -1236,7 +1230,6 @@ static const struct tty_operations capinc_ops = {
|
|||||||
.flush_chars = capinc_tty_flush_chars,
|
.flush_chars = capinc_tty_flush_chars,
|
||||||
.write_room = capinc_tty_write_room,
|
.write_room = capinc_tty_write_room,
|
||||||
.chars_in_buffer = capinc_tty_chars_in_buffer,
|
.chars_in_buffer = capinc_tty_chars_in_buffer,
|
||||||
.ioctl = capinc_tty_ioctl,
|
|
||||||
.set_termios = capinc_tty_set_termios,
|
.set_termios = capinc_tty_set_termios,
|
||||||
.throttle = capinc_tty_throttle,
|
.throttle = capinc_tty_throttle,
|
||||||
.unthrottle = capinc_tty_unthrottle,
|
.unthrottle = capinc_tty_unthrottle,
|
||||||
|
Loading…
Reference in New Issue
Block a user