aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/generic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index e129fcd69fd9..2a2fa2d0489d 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -217,10 +217,8 @@ retry:
217 clear_bit(i, &port->write_urbs_free); 217 clear_bit(i, &port->write_urbs_free);
218 result = usb_submit_urb(urb, GFP_ATOMIC); 218 result = usb_submit_urb(urb, GFP_ATOMIC);
219 if (result) { 219 if (result) {
220 if (!port->port.console) { 220 dev_err_console(port, "%s - error submitting urb: %d\n",
221 dev_err(&port->dev, "%s - error submitting urb: %d\n",
222 __func__, result); 221 __func__, result);
223 }
224 set_bit(i, &port->write_urbs_free); 222 set_bit(i, &port->write_urbs_free);
225 spin_lock_irqsave(&port->lock, flags); 223 spin_lock_irqsave(&port->lock, flags);
226 port->tx_bytes -= count; 224 port->tx_bytes -= count;