Browse Source

USB: keyspan_pda.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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Greg Kroah-Hartman 13 years ago
parent
commit
5542cf791c
1 changed files with 2 additions and 6 deletions
  1. 2 6
      drivers/usb/serial/keyspan_pda.c

+ 2 - 6
drivers/usb/serial/keyspan_pda.c

@@ -131,7 +131,6 @@ static void keyspan_pda_request_unthrottle(struct work_struct *work)
 	struct usb_serial *serial = priv->serial;
 	struct usb_serial *serial = priv->serial;
 	int result;
 	int result;
 
 
-	dbg(" request_unthrottle");
 	/* ask the device to tell us when the tx buffer becomes
 	/* ask the device to tell us when the tx buffer becomes
 	   sufficiently empty */
 	   sufficiently empty */
 	result = usb_control_msg(serial->dev,
 	result = usb_control_msg(serial->dev,
@@ -226,7 +225,7 @@ static void keyspan_pda_rx_throttle(struct tty_struct *tty)
 	   send an XOFF, although it might make sense to foist that off
 	   send an XOFF, although it might make sense to foist that off
 	   upon the device too. */
 	   upon the device too. */
 	struct usb_serial_port *port = tty->driver_data;
 	struct usb_serial_port *port = tty->driver_data;
-	dbg("keyspan_pda_rx_throttle port %d", port->number);
+
 	usb_kill_urb(port->interrupt_in_urb);
 	usb_kill_urb(port->interrupt_in_urb);
 }
 }
 
 
@@ -235,7 +234,7 @@ static void keyspan_pda_rx_unthrottle(struct tty_struct *tty)
 {
 {
 	struct usb_serial_port *port = tty->driver_data;
 	struct usb_serial_port *port = tty->driver_data;
 	/* just restart the receive interrupt URB */
 	/* just restart the receive interrupt URB */
-	dbg("keyspan_pda_rx_unthrottle port %d", port->number);
+
 	if (usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL))
 	if (usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL))
 		dbg(" usb_submit_urb(read urb) failed");
 		dbg(" usb_submit_urb(read urb) failed");
 }
 }
@@ -466,7 +465,6 @@ static int keyspan_pda_write(struct tty_struct *tty,
 	   select() or poll() too) until we receive that unthrottle interrupt.
 	   select() or poll() too) until we receive that unthrottle interrupt.
 	   Block if we can't write anything at all, otherwise write as much as
 	   Block if we can't write anything at all, otherwise write as much as
 	   we can. */
 	   we can. */
-	dbg("keyspan_pda_write(%d)", count);
 	if (count == 0) {
 	if (count == 0) {
 		dbg(" write request of 0 bytes");
 		dbg(" write request of 0 bytes");
 		return 0;
 		return 0;
@@ -766,8 +764,6 @@ static int keyspan_pda_startup(struct usb_serial *serial)
 
 
 static void keyspan_pda_release(struct usb_serial *serial)
 static void keyspan_pda_release(struct usb_serial *serial)
 {
 {
-	dbg("%s", __func__);
-
 	kfree(usb_get_serial_port_data(serial->port[0]));
 	kfree(usb_get_serial_port_data(serial->port[0]));
 }
 }