Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -122,8 +122,6 @@ static int cyberjack_startup(struct usb_serial *serial)
	struct cyberjack_private *priv;
	int i;

	dbg("%s", __func__);

	/* allocate the private data structure */
	priv = kmalloc(sizeof(struct cyberjack_private), GFP_KERNEL);
	if (!priv)
@@ -155,8 +153,6 @@ static void cyberjack_disconnect(struct usb_serial *serial)
{
	int i;

	dbg("%s", __func__);

	for (i = 0; i < serial->num_ports; ++i)
		usb_kill_urb(serial->port[i]->interrupt_in_urb);
}
@@ -165,8 +161,6 @@ static void cyberjack_release(struct usb_serial *serial)
{
	int i;

	dbg("%s", __func__);

	for (i = 0; i < serial->num_ports; ++i) {
		/* My special items, the standard routines free my urbs */
		kfree(usb_get_serial_port_data(serial->port[i]));
@@ -180,8 +174,6 @@ static int cyberjack_open(struct tty_struct *tty,
	unsigned long flags;
	int result = 0;

	dbg("%s - port %d", __func__, port->number);

	dbg("%s - usb_clear_halt", __func__);
	usb_clear_halt(port->serial->dev, port->write_urb->pipe);

@@ -197,8 +189,6 @@ static int cyberjack_open(struct tty_struct *tty,

static void cyberjack_close(struct usb_serial_port *port)
{
	dbg("%s - port %d", __func__, port->number);

	if (port->serial->dev) {
		/* shutdown any bulk reads that might be going on */
		usb_kill_urb(port->write_urb);
@@ -214,8 +204,6 @@ static int cyberjack_write(struct tty_struct *tty,
	int result;
	int wrexpected;

	dbg("%s - port %d", __func__, port->number);

	if (count == 0) {
		dbg("%s - write request of 0 bytes", __func__);
		return 0;
@@ -307,8 +295,6 @@ static void cyberjack_read_int_callback(struct urb *urb)
	int status = urb->status;
	int result;

	dbg("%s - port %d", __func__, port->number);

	/* the urb might have been killed. */
	if (status)
		return;
@@ -367,8 +353,6 @@ static void cyberjack_read_bulk_callback(struct urb *urb)
	int result;
	int status = urb->status;

	dbg("%s - port %d", __func__, port->number);

	usb_serial_debug_data(debug, &port->dev, __func__,
						urb->actual_length, data);
	if (status) {
@@ -417,8 +401,6 @@ static void cyberjack_write_bulk_callback(struct urb *urb)
	struct cyberjack_private *priv = usb_get_serial_port_data(port);
	int status = urb->status;

	dbg("%s - port %d", __func__, port->number);

	set_bit(0, &port->write_urbs_free);
	if (status) {
		dbg("%s - nonzero write bulk status received: %d",