diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-08-24 15:40:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:55:21 -0400 |
commit | 14c04c0f88f228fee1f412be91d6edcb935c78aa (patch) | |
tree | af635fda5cab3d0559326976dc818cd34c7f53bd /drivers/usb/host/ehci-sched.c | |
parent | 4d2f110c51eec853c50f68cf068888a77551c8d3 (diff) |
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>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r-- | drivers/usb/host/ehci-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 8b267b3fd2bb..80d99bce2b38 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c | |||
@@ -1627,7 +1627,7 @@ itd_complete ( | |||
1627 | 1627 | ||
1628 | /* give urb back to the driver ... can be out-of-order */ | 1628 | /* give urb back to the driver ... can be out-of-order */ |
1629 | dev = urb->dev; | 1629 | dev = urb->dev; |
1630 | ehci_urb_done (ehci, urb); | 1630 | ehci_urb_done(ehci, urb, 0); |
1631 | urb = NULL; | 1631 | urb = NULL; |
1632 | 1632 | ||
1633 | /* defer stopping schedule; completion can submit */ | 1633 | /* defer stopping schedule; completion can submit */ |
@@ -2000,7 +2000,7 @@ sitd_complete ( | |||
2000 | 2000 | ||
2001 | /* give urb back to the driver */ | 2001 | /* give urb back to the driver */ |
2002 | dev = urb->dev; | 2002 | dev = urb->dev; |
2003 | ehci_urb_done (ehci, urb); | 2003 | ehci_urb_done(ehci, urb, 0); |
2004 | urb = NULL; | 2004 | urb = NULL; |
2005 | 2005 | ||
2006 | /* defer stopping schedule; completion can submit */ | 2006 | /* defer stopping schedule; completion can submit */ |