Message ID | 20190219211558.20809-1-iamkeyur96@gmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 79595a734a68f768774d3e9ad6b5ad994413c578 |
Headers | show |
Series | usb: core: Replace hardcoded check with inline function from usb.h | expand |
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index d65566341dd1..29e2ff055e6e 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -604,7 +604,7 @@ static void async_completed(struct urb *urb) snoop(&urb->dev->dev, "urb complete\n"); snoop_urb(urb->dev, as->userurb, urb->pipe, urb->actual_length, as->status, COMPLETE, NULL, 0); - if ((urb->transfer_flags & URB_DIR_MASK) == URB_DIR_IN) + if (usb_urb_dir_in(urb)) snoop_urb_data(urb, urb->actual_length); if (as->status < 0 && as->bulk_addr && as->status != -ECONNRESET &&