]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
staging: dgrp: dgrp_tty.c: Remove the TIOCSSOFTCAR ioctl handler from dgrp driver
authorKumar Amit Mehta <gmate.amit@gmail.com>
Thu, 22 Nov 2012 19:46:34 +0000 (01:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:07:01 +0000 (16:07 -0800)
Remove the TIOCSSOFTCAR ioctl handler from dgrp driver and let the core tty
layer to take care of this ioctl instead.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_tty.c

index e3fa6eac53ce773525b0018e4cc4fd6fb20da6ae..5796de8ddbe4f21ce27c3b458dba80465d8d75be 100644 (file)
@@ -2623,13 +2623,6 @@ static int dgrp_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
                put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long __user *) arg);
                return 0;
 
-       case TIOCSSOFTCAR:
-               get_user(arg, (unsigned long __user *) arg);
-               tty->termios.c_cflag =
-                       ((tty->termios.c_cflag & ~CLOCAL) |
-                        (arg ? CLOCAL : 0));
-               return 0;
-
        case TIOCMGET:
                rc = access_ok(VERIFY_WRITE, (void __user *) arg,
                                 sizeof(unsigned int));