Skip to content

Commit

Permalink
USB: serial: metro-usb: make debug messages bit more informative.
Browse files Browse the repository at this point in the history
In this place result value is always zero. Use urb->status instead.

Signed-off-by: Aleksey Babahin <tamerlan311@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Aleksey Babahin authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 91fbecf commit bd2c09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ static void metrousb_read_int_callback(struct urb *urb)
/* urb has been terminated. */
dev_dbg(&port->dev,
"%s - urb shutting down, error code=%d\n",
__func__, result);
__func__, urb->status);
return;
default:
dev_dbg(&port->dev,
"%s - non-zero urb received, error code=%d\n",
__func__, result);
__func__, urb->status);
goto exit;
}

Expand Down

0 comments on commit bd2c09b

Please sign in to comment.