usb serial: Eliminate bogus ioctl code
Several drivers have bogus ioctl code that tries unneccessarily to override the standard processing. In the three cases here the actual code is not only wrong but also not required as they implement the proper set_termios method as well. Remove the junk. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -2460,12 +2460,6 @@ static int mos7840_ioctl(struct usb_serial_port *port, struct file *file,
|
||||
tty_ldisc_deref(ld);
|
||||
return 0;
|
||||
|
||||
case TCGETS:
|
||||
if (kernel_termios_to_user_termios
|
||||
((struct termios __user *)argp, tty->termios))
|
||||
return -EFAULT;
|
||||
return 0;
|
||||
|
||||
case TIOCSERGETLSR:
|
||||
dbg("%s (%d) TIOCSERGETLSR", __FUNCTION__, port->number);
|
||||
return mos7840_get_lsr_info(mos7840_port, argp);
|
||||
|
Reference in New Issue
Block a user