Skip to content

Commit

Permalink
staging: dgrp: dgrp_tty.c: Remove the TIOCSSOFTCAR ioctl handler from…
Browse files Browse the repository at this point in the history
… dgrp driver

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>
  • Loading branch information
Kumar Amit Mehta authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent 72d4724 commit 3ba89e9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/staging/dgrp/dgrp_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3ba89e9

Please sign in to comment.