mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
USB: devio: fix a condition in async_completed()
commit83ed07c5dbupstream. Static checkers complain that the current condition is never true. It seems pretty likely that it's a typo and "URB" was intended instead of "USB". Fixes:3d97ff63f8('usbdevfs: Use scatter-gather lists for large bulk transfers') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2c2e438cbb
commit
f32f8e6652
@@ -513,7 +513,7 @@ static void async_completed(struct urb *urb)
|
|||||||
snoop(&urb->dev->dev, "urb complete\n");
|
snoop(&urb->dev->dev, "urb complete\n");
|
||||||
snoop_urb(urb->dev, as->userurb, urb->pipe, urb->actual_length,
|
snoop_urb(urb->dev, as->userurb, urb->pipe, urb->actual_length,
|
||||||
as->status, COMPLETE, NULL, 0);
|
as->status, COMPLETE, NULL, 0);
|
||||||
if ((urb->transfer_flags & URB_DIR_MASK) == USB_DIR_IN)
|
if ((urb->transfer_flags & URB_DIR_MASK) == URB_DIR_IN)
|
||||||
snoop_urb_data(urb, urb->actual_length);
|
snoop_urb_data(urb, urb->actual_length);
|
||||||
|
|
||||||
if (as->status < 0 && as->bulk_addr && as->status != -ECONNRESET &&
|
if (as->status < 0 && as->bulk_addr && as->status != -ECONNRESET &&
|
||||||
|
|||||||
Reference in New Issue
Block a user