mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 04:40:55 +07:00
USB: keyspan: remove dead debugging code
Remove out-commented and ifdeffed debugging code. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
d9a38a8741
commit
36904592bc
@ -397,17 +397,6 @@ static void usa26_instat_callback(struct urb *urb)
|
|||||||
|
|
||||||
msg = (struct keyspan_usa26_portStatusMessage *)data;
|
msg = (struct keyspan_usa26_portStatusMessage *)data;
|
||||||
|
|
||||||
#if 0
|
|
||||||
dev_dbg(&urb->dev->dev,
|
|
||||||
"%s - port status: port %d cts %d dcd %d dsr %d ri %d toff %d txoff %d rxen %d cr %d",
|
|
||||||
__func__, msg->port, msg->hskia_cts, msg->gpia_dcd, msg->dsr,
|
|
||||||
msg->ri, msg->_txOff, msg->_txXoff, msg->rxEnabled,
|
|
||||||
msg->controlResponse);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Now do something useful with the data */
|
|
||||||
|
|
||||||
|
|
||||||
/* Check port number from message and retrieve private data */
|
/* Check port number from message and retrieve private data */
|
||||||
if (msg->port >= serial->num_ports) {
|
if (msg->port >= serial->num_ports) {
|
||||||
dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port);
|
dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port);
|
||||||
@ -523,9 +512,6 @@ static void usa28_instat_callback(struct urb *urb)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*dev_dbg(&urb->dev->dev, "%s %12ph", __func__, data);*/
|
|
||||||
|
|
||||||
/* Now do something useful with the data */
|
|
||||||
msg = (struct keyspan_usa28_portStatusMessage *)data;
|
msg = (struct keyspan_usa28_portStatusMessage *)data;
|
||||||
|
|
||||||
/* Check port number from message and retrieve private data */
|
/* Check port number from message and retrieve private data */
|
||||||
@ -605,9 +591,6 @@ static void usa49_instat_callback(struct urb *urb)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*dev_dbg(&urb->dev->dev, "%s: %11ph", __func__, data);*/
|
|
||||||
|
|
||||||
/* Now do something useful with the data */
|
|
||||||
msg = (struct keyspan_usa49_portStatusMessage *)data;
|
msg = (struct keyspan_usa49_portStatusMessage *)data;
|
||||||
|
|
||||||
/* Check port number from message and retrieve private data */
|
/* Check port number from message and retrieve private data */
|
||||||
@ -1793,12 +1776,6 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial,
|
|||||||
err = usb_submit_urb(this_urb, GFP_ATOMIC);
|
err = usb_submit_urb(this_urb, GFP_ATOMIC);
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
dev_dbg(&port->dev, "%s - usb_submit_urb(setup) failed\n", __func__);
|
dev_dbg(&port->dev, "%s - usb_submit_urb(setup) failed\n", __func__);
|
||||||
#if 0
|
|
||||||
else {
|
|
||||||
dev_dbg(&port->dev, "%s - usb_submit_urb(setup) OK %d bytes\n", __func__,
|
|
||||||
this_urb->transfer_buffer_length);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1976,13 +1953,6 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
|
|||||||
err = usb_submit_urb(this_urb, GFP_ATOMIC);
|
err = usb_submit_urb(this_urb, GFP_ATOMIC);
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
dev_dbg(&port->dev, "%s - usb_submit_urb(setup) failed (%d)\n", __func__, err);
|
dev_dbg(&port->dev, "%s - usb_submit_urb(setup) failed (%d)\n", __func__, err);
|
||||||
#if 0
|
|
||||||
else {
|
|
||||||
dev_dbg(&port->dev, "%s - usb_submit_urb(%d) OK %d bytes (end %d)\n", __func__,
|
|
||||||
outcont_urb, this_urb->transfer_buffer_length,
|
|
||||||
usb_pipeendpoint(this_urb->pipe));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user