Commit b627488c authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: cyberjack.c: remove dbg() tracing calls

dbg() was used a lot a long time ago to trace code flow.  Now that we have
ftrace, this isn't needed at all, so remove these calls.

CC: Matthias Bruestle and Harald Welte <support@reiner-sct.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b978a5a1
...@@ -122,8 +122,6 @@ static int cyberjack_startup(struct usb_serial *serial) ...@@ -122,8 +122,6 @@ static int cyberjack_startup(struct usb_serial *serial)
struct cyberjack_private *priv; struct cyberjack_private *priv;
int i; int i;
dbg("%s", __func__);
/* allocate the private data structure */ /* allocate the private data structure */
priv = kmalloc(sizeof(struct cyberjack_private), GFP_KERNEL); priv = kmalloc(sizeof(struct cyberjack_private), GFP_KERNEL);
if (!priv) if (!priv)
...@@ -155,8 +153,6 @@ static void cyberjack_disconnect(struct usb_serial *serial) ...@@ -155,8 +153,6 @@ static void cyberjack_disconnect(struct usb_serial *serial)
{ {
int i; int i;
dbg("%s", __func__);
for (i = 0; i < serial->num_ports; ++i) for (i = 0; i < serial->num_ports; ++i)
usb_kill_urb(serial->port[i]->interrupt_in_urb); usb_kill_urb(serial->port[i]->interrupt_in_urb);
} }
...@@ -165,8 +161,6 @@ static void cyberjack_release(struct usb_serial *serial) ...@@ -165,8 +161,6 @@ static void cyberjack_release(struct usb_serial *serial)
{ {
int i; int i;
dbg("%s", __func__);
for (i = 0; i < serial->num_ports; ++i) { for (i = 0; i < serial->num_ports; ++i) {
/* My special items, the standard routines free my urbs */ /* My special items, the standard routines free my urbs */
kfree(usb_get_serial_port_data(serial->port[i])); kfree(usb_get_serial_port_data(serial->port[i]));
...@@ -180,8 +174,6 @@ static int cyberjack_open(struct tty_struct *tty, ...@@ -180,8 +174,6 @@ static int cyberjack_open(struct tty_struct *tty,
unsigned long flags; unsigned long flags;
int result = 0; int result = 0;
dbg("%s - port %d", __func__, port->number);
dbg("%s - usb_clear_halt", __func__); dbg("%s - usb_clear_halt", __func__);
usb_clear_halt(port->serial->dev, port->write_urb->pipe); usb_clear_halt(port->serial->dev, port->write_urb->pipe);
...@@ -197,8 +189,6 @@ static int cyberjack_open(struct tty_struct *tty, ...@@ -197,8 +189,6 @@ static int cyberjack_open(struct tty_struct *tty,
static void cyberjack_close(struct usb_serial_port *port) static void cyberjack_close(struct usb_serial_port *port)
{ {
dbg("%s - port %d", __func__, port->number);
if (port->serial->dev) { if (port->serial->dev) {
/* shutdown any bulk reads that might be going on */ /* shutdown any bulk reads that might be going on */
usb_kill_urb(port->write_urb); usb_kill_urb(port->write_urb);
...@@ -214,8 +204,6 @@ static int cyberjack_write(struct tty_struct *tty, ...@@ -214,8 +204,6 @@ static int cyberjack_write(struct tty_struct *tty,
int result; int result;
int wrexpected; int wrexpected;
dbg("%s - port %d", __func__, port->number);
if (count == 0) { if (count == 0) {
dbg("%s - write request of 0 bytes", __func__); dbg("%s - write request of 0 bytes", __func__);
return 0; return 0;
...@@ -307,8 +295,6 @@ static void cyberjack_read_int_callback(struct urb *urb) ...@@ -307,8 +295,6 @@ static void cyberjack_read_int_callback(struct urb *urb)
int status = urb->status; int status = urb->status;
int result; int result;
dbg("%s - port %d", __func__, port->number);
/* the urb might have been killed. */ /* the urb might have been killed. */
if (status) if (status)
return; return;
...@@ -367,8 +353,6 @@ static void cyberjack_read_bulk_callback(struct urb *urb) ...@@ -367,8 +353,6 @@ static void cyberjack_read_bulk_callback(struct urb *urb)
int result; int result;
int status = urb->status; int status = urb->status;
dbg("%s - port %d", __func__, port->number);
usb_serial_debug_data(debug, &port->dev, __func__, usb_serial_debug_data(debug, &port->dev, __func__,
urb->actual_length, data); urb->actual_length, data);
if (status) { if (status) {
...@@ -417,8 +401,6 @@ static void cyberjack_write_bulk_callback(struct urb *urb) ...@@ -417,8 +401,6 @@ static void cyberjack_write_bulk_callback(struct urb *urb)
struct cyberjack_private *priv = usb_get_serial_port_data(port); struct cyberjack_private *priv = usb_get_serial_port_data(port);
int status = urb->status; int status = urb->status;
dbg("%s - port %d", __func__, port->number);
set_bit(0, &port->write_urbs_free); set_bit(0, &port->write_urbs_free);
if (status) { if (status) {
dbg("%s - nonzero write bulk status received: %d", dbg("%s - nonzero write bulk status received: %d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment