Skip to content

Commit

Permalink
USB: oti6858: Remove broken ioctl code in -mm tree and also the broke…
Browse files Browse the repository at this point in the history
…n fixes

This stuff is simply not needed.

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 11, 2007
1 parent 0d4cbb5 commit fa0e672
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions drivers/usb/serial/oti6858.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,21 +817,6 @@ static int oti6858_ioctl(struct usb_serial_port *port, struct file *file,
__FUNCTION__, port->number, cmd, arg);

switch (cmd) {
case TCGETS:
if (kernel_termios_to_user_termios((struct ktermios __user *)arg,
port->tty->termios))
return -EFAULT;
return 0;

case TCSETS:
case TCSETSW: /* FIXME: this is not the same! */
case TCSETSF: /* FIXME: this is not the same! */
if (user_termios_to_kernel_termios(port->tty->termios,
(struct ktermios __user *)arg))
return -EFAULT;
oti6858_set_termios(port, NULL);
return 0;

case TCFLSH:
/* FIXME */
return 0;
Expand Down

0 comments on commit fa0e672

Please sign in to comment.