diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-09-12 17:54:22 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-10-13 00:50:45 -0400 |
commit | e67504c5958f122944d4b9316d1cfc737027c466 (patch) | |
tree | 1d525b956288eff71c3570de3ca8eecee8bb9c28 /drivers/isdn | |
parent | 864e880de59ecd891260f264d2884eabb9d6760c (diff) |
isdn_tty: TCSBRK{,P} won't reach ->ioctl()
kill the long-dead code - it's been unreachable since 2008. Redundant, as
well - generic will do exact same thing, since ->break_ctl is NULL here...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index b730037a0e2d..1b2239c1d569 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -1412,31 +1412,12 @@ static int | |||
1412 | isdn_tty_ioctl(struct tty_struct *tty, uint cmd, ulong arg) | 1412 | isdn_tty_ioctl(struct tty_struct *tty, uint cmd, ulong arg) |
1413 | { | 1413 | { |
1414 | modem_info *info = (modem_info *) tty->driver_data; | 1414 | modem_info *info = (modem_info *) tty->driver_data; |
1415 | int retval; | ||
1416 | 1415 | ||
1417 | if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_ioctl")) | 1416 | if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_ioctl")) |
1418 | return -ENODEV; | 1417 | return -ENODEV; |
1419 | if (tty_io_error(tty)) | 1418 | if (tty_io_error(tty)) |
1420 | return -EIO; | 1419 | return -EIO; |
1421 | switch (cmd) { | 1420 | switch (cmd) { |
1422 | case TCSBRK: /* SVID version: non-zero arg --> no break */ | ||
1423 | #ifdef ISDN_DEBUG_MODEM_IOCTL | ||
1424 | printk(KERN_DEBUG "ttyI%d ioctl TCSBRK\n", info->line); | ||
1425 | #endif | ||
1426 | retval = tty_check_change(tty); | ||
1427 | if (retval) | ||
1428 | return retval; | ||
1429 | tty_wait_until_sent(tty, 0); | ||
1430 | return 0; | ||
1431 | case TCSBRKP: /* support for POSIX tcsendbreak() */ | ||
1432 | #ifdef ISDN_DEBUG_MODEM_IOCTL | ||
1433 | printk(KERN_DEBUG "ttyI%d ioctl TCSBRKP\n", info->line); | ||
1434 | #endif | ||
1435 | retval = tty_check_change(tty); | ||
1436 | if (retval) | ||
1437 | return retval; | ||
1438 | tty_wait_until_sent(tty, 0); | ||
1439 | return 0; | ||
1440 | case TIOCSERGETLSR: /* Get line status register */ | 1421 | case TIOCSERGETLSR: /* Get line status register */ |
1441 | #ifdef ISDN_DEBUG_MODEM_IOCTL | 1422 | #ifdef ISDN_DEBUG_MODEM_IOCTL |
1442 | printk(KERN_DEBUG "ttyI%d ioctl TIOCSERGETLSR\n", info->line); | 1423 | printk(KERN_DEBUG "ttyI%d ioctl TIOCSERGETLSR\n", info->line); |