USB: serial: metro-usb: make debug messages bit more informative.
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>
This commit is contained in:
parent
91fbecfe59
commit
bd2c09bc20
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue