USB: reorganize urb->status use in ehci-hcd
This patch (as974) reorganizes the way ehci-hcd sets urb->status. It now keeps the information in a local variable until the last moment. The patch also simplifies the handling of -EREMOTEIO, since the only use of that code is to set the do_status flag. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: David Brownell <david-b@pacbell.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4d2f110c51
commit
14c04c0f88
@@ -1627,7 +1627,7 @@ itd_complete (
|
||||
|
||||
/* give urb back to the driver ... can be out-of-order */
|
||||
dev = urb->dev;
|
||||
ehci_urb_done (ehci, urb);
|
||||
ehci_urb_done(ehci, urb, 0);
|
||||
urb = NULL;
|
||||
|
||||
/* defer stopping schedule; completion can submit */
|
||||
@@ -2000,7 +2000,7 @@ sitd_complete (
|
||||
|
||||
/* give urb back to the driver */
|
||||
dev = urb->dev;
|
||||
ehci_urb_done (ehci, urb);
|
||||
ehci_urb_done(ehci, urb, 0);
|
||||
urb = NULL;
|
||||
|
||||
/* defer stopping schedule; completion can submit */
|
||||
|
Reference in New Issue
Block a user