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

USB: ssu100.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: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76533636
...@@ -85,7 +85,6 @@ static void ssu100_release(struct usb_serial *serial) ...@@ -85,7 +85,6 @@ static void ssu100_release(struct usb_serial *serial)
{ {
struct ssu100_port_private *priv = usb_get_serial_port_data(*serial->port); struct ssu100_port_private *priv = usb_get_serial_port_data(*serial->port);
dbg("%s", __func__);
kfree(priv); kfree(priv);
} }
...@@ -171,8 +170,6 @@ static int ssu100_initdevice(struct usb_device *dev) ...@@ -171,8 +170,6 @@ static int ssu100_initdevice(struct usb_device *dev)
u8 *data; u8 *data;
int result = 0; int result = 0;
dbg("%s", __func__);
data = kzalloc(3, GFP_KERNEL); data = kzalloc(3, GFP_KERNEL);
if (!data) if (!data)
return -ENOMEM; return -ENOMEM;
...@@ -237,8 +234,6 @@ static void ssu100_set_termios(struct tty_struct *tty, ...@@ -237,8 +234,6 @@ static void ssu100_set_termios(struct tty_struct *tty,
u16 urb_value = 0; /* will hold the new flags */ u16 urb_value = 0; /* will hold the new flags */
int result; int result;
dbg("%s", __func__);
if (cflag & PARENB) { if (cflag & PARENB) {
if (cflag & PARODD) if (cflag & PARODD)
urb_value |= UART_LCR_PARITY; urb_value |= UART_LCR_PARITY;
...@@ -312,8 +307,6 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -312,8 +307,6 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
int result; int result;
unsigned long flags; unsigned long flags;
dbg("%s - port %d", __func__, port->number);
data = kzalloc(2, GFP_KERNEL); data = kzalloc(2, GFP_KERNEL);
if (!data) if (!data)
return -ENOMEM; return -ENOMEM;
...@@ -348,7 +341,6 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -348,7 +341,6 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
static void ssu100_close(struct usb_serial_port *port) static void ssu100_close(struct usb_serial_port *port)
{ {
dbg("%s", __func__);
usb_serial_generic_close(port); usb_serial_generic_close(port);
} }
...@@ -467,8 +459,6 @@ static int ssu100_attach(struct usb_serial *serial) ...@@ -467,8 +459,6 @@ static int ssu100_attach(struct usb_serial *serial)
struct ssu100_port_private *priv; struct ssu100_port_private *priv;
struct usb_serial_port *port = *serial->port; struct usb_serial_port *port = *serial->port;
dbg("%s", __func__);
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
dev_err(&port->dev, "%s- kmalloc(%Zd) failed.\n", __func__, dev_err(&port->dev, "%s- kmalloc(%Zd) failed.\n", __func__,
...@@ -490,8 +480,6 @@ static int ssu100_tiocmget(struct tty_struct *tty) ...@@ -490,8 +480,6 @@ static int ssu100_tiocmget(struct tty_struct *tty)
u8 *d; u8 *d;
int r; int r;
dbg("%s\n", __func__);
d = kzalloc(2, GFP_KERNEL); d = kzalloc(2, GFP_KERNEL);
if (!d) if (!d)
return -ENOMEM; return -ENOMEM;
...@@ -522,7 +510,6 @@ static int ssu100_tiocmset(struct tty_struct *tty, ...@@ -522,7 +510,6 @@ static int ssu100_tiocmset(struct tty_struct *tty,
struct usb_serial_port *port = tty->driver_data; struct usb_serial_port *port = tty->driver_data;
struct usb_device *dev = port->serial->dev; struct usb_device *dev = port->serial->dev;
dbg("%s\n", __func__);
return update_mctrl(dev, set, clear); return update_mctrl(dev, set, clear);
} }
...@@ -530,8 +517,6 @@ static void ssu100_dtr_rts(struct usb_serial_port *port, int on) ...@@ -530,8 +517,6 @@ static void ssu100_dtr_rts(struct usb_serial_port *port, int on)
{ {
struct usb_device *dev = port->serial->dev; struct usb_device *dev = port->serial->dev;
dbg("%s\n", __func__);
mutex_lock(&port->serial->disc_mutex); mutex_lock(&port->serial->disc_mutex);
if (!port->serial->disconnected) { if (!port->serial->disconnected) {
/* Disable flow control */ /* Disable flow control */
...@@ -618,8 +603,6 @@ static int ssu100_process_packet(struct urb *urb, ...@@ -618,8 +603,6 @@ static int ssu100_process_packet(struct urb *urb,
int i; int i;
char *ch; char *ch;
dbg("%s - port %d", __func__, port->number);
if ((len >= 4) && if ((len >= 4) &&
(packet[0] == 0x1b) && (packet[1] == 0x1b) && (packet[0] == 0x1b) && (packet[1] == 0x1b) &&
((packet[2] == 0x00) || (packet[2] == 0x01))) { ((packet[2] == 0x00) || (packet[2] == 0x01))) {
...@@ -656,8 +639,6 @@ static void ssu100_process_read_urb(struct urb *urb) ...@@ -656,8 +639,6 @@ static void ssu100_process_read_urb(struct urb *urb)
struct tty_struct *tty; struct tty_struct *tty;
int count; int count;
dbg("%s", __func__);
tty = tty_port_tty_get(&port->port); tty = tty_port_tty_get(&port->port);
if (!tty) if (!tty)
return; return;
......
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