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

USB: symbolserial.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: Rusty Russell <rusty@rustcorp.com.au>
CC: Johan Hovold <jhovold@gmail.com>
CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
CC: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb7a9c4a
...@@ -54,8 +54,6 @@ static void symbol_int_callback(struct urb *urb) ...@@ -54,8 +54,6 @@ static void symbol_int_callback(struct urb *urb)
int result; int result;
int data_length; int data_length;
dbg("%s - port %d", __func__, port->number);
switch (status) { switch (status) {
case 0: case 0:
/* success */ /* success */
...@@ -125,8 +123,6 @@ static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -125,8 +123,6 @@ static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port)
unsigned long flags; unsigned long flags;
int result = 0; int result = 0;
dbg("%s - port %d", __func__, port->number);
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
priv->throttled = false; priv->throttled = false;
priv->actually_throttled = false; priv->actually_throttled = false;
...@@ -150,8 +146,6 @@ static void symbol_close(struct usb_serial_port *port) ...@@ -150,8 +146,6 @@ static void symbol_close(struct usb_serial_port *port)
{ {
struct symbol_private *priv = usb_get_serial_data(port->serial); struct symbol_private *priv = usb_get_serial_data(port->serial);
dbg("%s - port %d", __func__, port->number);
/* shutdown our urbs */ /* shutdown our urbs */
usb_kill_urb(priv->int_urb); usb_kill_urb(priv->int_urb);
} }
...@@ -161,7 +155,6 @@ static void symbol_throttle(struct tty_struct *tty) ...@@ -161,7 +155,6 @@ static void symbol_throttle(struct tty_struct *tty)
struct usb_serial_port *port = tty->driver_data; struct usb_serial_port *port = tty->driver_data;
struct symbol_private *priv = usb_get_serial_data(port->serial); struct symbol_private *priv = usb_get_serial_data(port->serial);
dbg("%s - port %d", __func__, port->number);
spin_lock_irq(&priv->lock); spin_lock_irq(&priv->lock);
priv->throttled = true; priv->throttled = true;
spin_unlock_irq(&priv->lock); spin_unlock_irq(&priv->lock);
...@@ -174,8 +167,6 @@ static void symbol_unthrottle(struct tty_struct *tty) ...@@ -174,8 +167,6 @@ static void symbol_unthrottle(struct tty_struct *tty)
int result; int result;
bool was_throttled; bool was_throttled;
dbg("%s - port %d", __func__, port->number);
spin_lock_irq(&priv->lock); spin_lock_irq(&priv->lock);
priv->throttled = false; priv->throttled = false;
was_throttled = priv->actually_throttled; was_throttled = priv->actually_throttled;
...@@ -266,8 +257,6 @@ static void symbol_disconnect(struct usb_serial *serial) ...@@ -266,8 +257,6 @@ static void symbol_disconnect(struct usb_serial *serial)
{ {
struct symbol_private *priv = usb_get_serial_data(serial); struct symbol_private *priv = usb_get_serial_data(serial);
dbg("%s", __func__);
usb_kill_urb(priv->int_urb); usb_kill_urb(priv->int_urb);
usb_free_urb(priv->int_urb); usb_free_urb(priv->int_urb);
} }
...@@ -276,8 +265,6 @@ static void symbol_release(struct usb_serial *serial) ...@@ -276,8 +265,6 @@ static void symbol_release(struct usb_serial *serial)
{ {
struct symbol_private *priv = usb_get_serial_data(serial); struct symbol_private *priv = usb_get_serial_data(serial);
dbg("%s", __func__);
kfree(priv->int_buffer); kfree(priv->int_buffer);
kfree(priv); kfree(priv);
} }
......
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