Commit 3e679e1d authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

isdn: capi, remove optional tty ops

break_ctl and set_ldisc are optional tty_operations hooks. Given capi
does nothing useful in them, just remove these.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20210505091928.22010-33-jslaby@suse.czSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4da872be
...@@ -1238,17 +1238,6 @@ static void capinc_tty_hangup(struct tty_struct *tty) ...@@ -1238,17 +1238,6 @@ static void capinc_tty_hangup(struct tty_struct *tty)
tty_port_hangup(&mp->port); tty_port_hangup(&mp->port);
} }
static int capinc_tty_break_ctl(struct tty_struct *tty, int state)
{
pr_debug("capinc_tty_break_ctl(%d)\n", state);
return 0;
}
static void capinc_tty_set_ldisc(struct tty_struct *tty)
{
pr_debug("capinc_tty_set_ldisc\n");
}
static void capinc_tty_send_xchar(struct tty_struct *tty, char ch) static void capinc_tty_send_xchar(struct tty_struct *tty, char ch)
{ {
pr_debug("capinc_tty_send_xchar(%d)\n", ch); pr_debug("capinc_tty_send_xchar(%d)\n", ch);
...@@ -1267,8 +1256,6 @@ static const struct tty_operations capinc_ops = { ...@@ -1267,8 +1256,6 @@ static const struct tty_operations capinc_ops = {
.stop = capinc_tty_stop, .stop = capinc_tty_stop,
.start = capinc_tty_start, .start = capinc_tty_start,
.hangup = capinc_tty_hangup, .hangup = capinc_tty_hangup,
.break_ctl = capinc_tty_break_ctl,
.set_ldisc = capinc_tty_set_ldisc,
.send_xchar = capinc_tty_send_xchar, .send_xchar = capinc_tty_send_xchar,
.install = capinc_tty_install, .install = capinc_tty_install,
.cleanup = capinc_tty_cleanup, .cleanup = capinc_tty_cleanup,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment