Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Remove unused code from rio_linux.c

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alan Cox and committed by
Linus Torvalds
542ea6c3 283c9d54

-60
-60
drivers/char/rio/rio_linux.c
··· 132 132 */ 133 133 #define IRQ_RATE_LIMIT 200 134 134 135 - #if 0 136 - /* Not implemented */ 137 - /* 138 - * The following defines are mostly for testing purposes. But if you need 139 - * some nice reporting in your syslog, you can define them also. 140 - */ 141 - #define RIO_REPORT_FIFO 142 - #define RIO_REPORT_OVERRUN 143 - #endif 144 - 145 135 146 136 /* These constants are derived from SCO Source */ 147 137 static struct Conf ··· 563 573 564 574 PortP = (struct Port *) ptr; 565 575 PortP->gs.tty = NULL; 566 - #if 0 567 - port->gs.flags &= ~GS_ACTIVE; 568 - if (!port->gs.tty) { 569 - rio_dprintk(RIO_DBUG_TTY, "No tty.\n"); 570 - return; 571 - } 572 - if (!port->gs.tty->termios) { 573 - rio_dprintk(RIO_DEBUG_TTY, "No termios.\n"); 574 - return; 575 - } 576 - if (port->gs.tty->termios->c_cflag & HUPCL) { 577 - rio_setsignals(port, 0, 0); 578 - } 579 - #endif 580 - 581 576 func_exit(); 582 577 } 583 578 ··· 638 663 639 664 rc = 0; 640 665 switch (cmd) { 641 - #if 0 642 - case TIOCGSOFTCAR: 643 - rc = put_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), (unsigned int *) arg); 644 - break; 645 - #endif 646 666 case TIOCSSOFTCAR: 647 667 if ((rc = get_user(ival, (unsigned int *) arg)) == 0) { 648 668 tty->termios->c_cflag = (tty->termios->c_cflag & ~CLOCAL) | (ival ? CLOCAL : 0); ··· 679 709 if (access_ok(VERIFY_READ, (void *) arg, sizeof(struct serial_struct))) 680 710 rc = gs_setserial(&PortP->gs, (struct serial_struct *) arg); 681 711 break; 682 - #if 0 683 - /* 684 - * note: these IOCTLs no longer reach here. Use 685 - * tiocmset/tiocmget driver methods instead. The 686 - * #if 0 disablement predates this comment. 687 - */ 688 - case TIOCMGET: 689 - rc = -EFAULT; 690 - if (access_ok(VERIFY_WRITE, (void *) arg, sizeof(unsigned int))) { 691 - rc = 0; 692 - ival = rio_getsignals(port); 693 - put_user(ival, (unsigned int *) arg); 694 - } 695 - break; 696 - case TIOCMBIS: 697 - if ((rc = get_user(ival, (unsigned int *) arg)) == 0) { 698 - rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1), ((ival & TIOCM_RTS) ? 1 : -1)); 699 - } 700 - break; 701 - case TIOCMBIC: 702 - if ((rc = get_user(ival, (unsigned int *) arg)) == 0) { 703 - rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1), ((ival & TIOCM_RTS) ? 0 : -1)); 704 - } 705 - break; 706 - case TIOCMSET: 707 - if ((rc = get_user(ival, (unsigned int *) arg)) == 0) { 708 - rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0), ((ival & TIOCM_RTS) ? 1 : 0)); 709 - } 710 - break; 711 - #endif 712 712 default: 713 713 rc = -ENOIOCTLCMD; 714 714 break;