diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-05-05 11:19:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 18:29:11 +0200 |
commit | 3e679e1da5ef01825df87d0ed96bef8cb2e39635 (patch) | |
tree | 92e7c4c18290eff69de30e0a587c0e363fc2b4f9 /drivers/isdn/capi | |
parent | 4da872befc83e65b106211272f18ff78a308ec97 (diff) | |
download | linux-3e679e1da5ef01825df87d0ed96bef8cb2e39635.tar.gz linux-3e679e1da5ef01825df87d0ed96bef8cb2e39635.tar.bz2 linux-3e679e1da5ef01825df87d0ed96bef8cb2e39635.zip |
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: Jiri 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.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/isdn/capi')
-rw-r--r-- | drivers/isdn/capi/capi.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index 693b0bc31395..bf8a8809eff1 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c @@ -1238,17 +1238,6 @@ static void capinc_tty_hangup(struct tty_struct *tty) 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) { pr_debug("capinc_tty_send_xchar(%d)\n", ch); @@ -1267,8 +1256,6 @@ static const struct tty_operations capinc_ops = { .stop = capinc_tty_stop, .start = capinc_tty_start, .hangup = capinc_tty_hangup, - .break_ctl = capinc_tty_break_ctl, - .set_ldisc = capinc_tty_set_ldisc, .send_xchar = capinc_tty_send_xchar, .install = capinc_tty_install, .cleanup = capinc_tty_cleanup, |