aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/empeg.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c
index 4703c8f85383..050fcc996f56 100644
--- a/drivers/usb/serial/empeg.c
+++ b/drivers/usb/serial/empeg.c
@@ -326,12 +326,14 @@ static int empeg_chars_in_buffer (struct usb_serial_port *port)
326 326
327static void empeg_write_bulk_callback (struct urb *urb) 327static void empeg_write_bulk_callback (struct urb *urb)
328{ 328{
329 struct usb_serial_port *port = (struct usb_serial_port *)urb->context; 329 struct usb_serial_port *port = urb->context;
330 int status = urb->status;
330 331
331 dbg("%s - port %d", __FUNCTION__, port->number); 332 dbg("%s - port %d", __FUNCTION__, port->number);
332 333
333 if (urb->status) { 334 if (status) {
334 dbg("%s - nonzero write bulk status received: %d", __FUNCTION__, urb->status); 335 dbg("%s - nonzero write bulk status received: %d",
336 __FUNCTION__, status);
335 return; 337 return;
336 } 338 }
337 339
@@ -345,11 +347,13 @@ static void empeg_read_bulk_callback (struct urb *urb)
345 struct tty_struct *tty; 347 struct tty_struct *tty;
346 unsigned char *data = urb->transfer_buffer; 348 unsigned char *data = urb->transfer_buffer;
347 int result; 349 int result;
350 int status = urb->status;
348 351
349 dbg("%s - port %d", __FUNCTION__, port->number); 352 dbg("%s - port %d", __FUNCTION__, port->number);
350 353
351 if (urb->status) { 354 if (status) {
352 dbg("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status); 355 dbg("%s - nonzero read bulk status received: %d",
356 __FUNCTION__, status);
353 return; 357 return;
354 } 358 }
355 359