Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e39ab592f182cd0be48acc4ad49f93ef4100017c
Commit:     e39ab592f182cd0be48acc4ad49f93ef4100017c
Parent:     f311cf58bd04adc683067f8d66daa5925b80f082
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 16 16:17:49 2007 -0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:16 2007 -0700

    USB: remove unnecessary tests in isp116x and sl811
    
    This patch (as962) cleans up some code I forgot to remove earlier in
    the isp116x and sl811 HCDs.  There is no longer any need to check for
    unlink-during-submit; it can't happen since the endpoint queues are
    now under the protection of the HCD-private spinlock.
    
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    CC: David Brownell <[EMAIL PROTECTED]>
    CC: Olav Kongas <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/host/isp116x-hcd.c |    6 ------
 drivers/usb/host/sl811-hcd.c   |   10 ----------
 2 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
index d5027dc..f2b5d62 100644
--- a/drivers/usb/host/isp116x-hcd.c
+++ b/drivers/usb/host/isp116x-hcd.c
@@ -815,12 +815,6 @@ static int isp116x_urb_enqueue(struct usb_hcd *hcd,
                }
        }
 
-       /* in case of unlink-during-submit */
-       if (urb->status != -EINPROGRESS) {
-               finish_request(isp116x, ep, urb);
-               ret = 0;
-               goto fail;
-       }
        urb->hcpriv = hep;
        start_atl_transfers(isp116x);
 
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index 3d3a63d..15a93f9 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -957,17 +957,7 @@ static int sl811h_urb_enqueue(
                sofirq_on(sl811);
        }
 
-       /* in case of unlink-during-submit */
-       spin_lock(&urb->lock);
-       if (urb->status != -EINPROGRESS) {
-               spin_unlock(&urb->lock);
-               finish_request(sl811, ep, urb, 0);
-               retval = 0;
-               goto fail;
-       }
        urb->hcpriv = hep;
-       spin_unlock(&urb->lock);
-
        start_transfer(sl811);
        sl811_write(sl811, SL11H_IRQ_ENABLE, sl811->irq_enable);
 fail:
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to