Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bf87ce5a06ed2cb13ad04f065706cf36ab021549
Commit:     bf87ce5a06ed2cb13ad04f065706cf36ab021549
Parent:     ef7f6c7084b333c7524dcd297e0578d43733a2a2
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 5 16:07:44 2007 -0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Tue May 22 23:45:49 2007 -0700

    USB: remove unneeded WARN_ON
    
    This patch (as883) removes an out-of-date WARN_ON from the main HCD
    endpoint-disable routine.  The warning is triggered whenever an
    endpoint is disabled while the root hub is suspended.  In the past
    that may not have been legal, but it definitely is legal now.  Merely
    unbinding a USB driver will do it.
    
    Furthermore, I've never seen any occurrences of this warning that
    really did signal an actual bug or error condition.  At this point it
    has outlived its purpose.
    
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    Signed-off-by: David Brownell <[EMAIL PROTECTED]>
---
 drivers/usb/core/hcd.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 40cf882..9ad2970 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -1175,10 +1175,6 @@ void usb_hcd_endpoint_disable (struct usb_device *udev,
        struct urb              *urb;
 
        hcd = bus_to_hcd(udev->bus);
-
-       WARN_ON (!HC_IS_RUNNING (hcd->state) && hcd->state != HC_STATE_HALT &&
-                       udev->state != USB_STATE_NOTATTACHED);
-
        local_irq_disable ();
 
        /* ep is already gone from udev->ep_{in,out}[]; no more submits */
-
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