USB: serial: clean up ioctl debugging

Remove redundant ioctl debugging from subdrivers. The ioctl request code
has already been logged by usb-serial core.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Johan Hovold
2013-12-29 19:22:55 +01:00
committed by Greg Kroah-Hartman
parent 5c6b98dd04
commit 4d5147ec90
12 changed files with 2 additions and 33 deletions

View File

@@ -2383,8 +2383,6 @@ static int ftdi_ioctl(struct tty_struct *tty,
{
struct usb_serial_port *port = tty->driver_data;
dev_dbg(&port->dev, "%s cmd 0x%04x\n", __func__, cmd);
/* Based on code from acm.c and others */
switch (cmd) {
@@ -2401,11 +2399,7 @@ static int ftdi_ioctl(struct tty_struct *tty,
default:
break;
}
/* This is not necessarily an error - turns out the higher layers
* will do some ioctls themselves (see comment above)
*/
dev_dbg(&port->dev, "%s arg not supported - it was 0x%04x - check /usr/include/asm/ioctls.h\n",
__func__, cmd);
return -ENOIOCTLCMD;
}