we can simplify usb_hcd_irq() by trusting the value
returned by HCDs' irq handlers. Note that this will
make conversion to threaded IRQs slightly simpler.

Signed-off-by: Felipe Balbi <felipe.ba...@linux.intel.com>
---
 drivers/usb/core/hcd.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 2ca2cef7f681..76a6cd0d3af9 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -2425,16 +2425,11 @@ EXPORT_SYMBOL_GPL(usb_bus_start_enum);
 irqreturn_t usb_hcd_irq (int irq, void *__hcd)
 {
        struct usb_hcd          *hcd = __hcd;
-       irqreturn_t             rc;
 
        if (unlikely(HCD_DEAD(hcd) || !HCD_HW_ACCESSIBLE(hcd)))
-               rc = IRQ_NONE;
-       else if (hcd->driver->irq(hcd) == IRQ_NONE)
-               rc = IRQ_NONE;
-       else
-               rc = IRQ_HANDLED;
+               return IRQ_NONE;
 
-       return rc;
+       return hcd->driver->irq(hcd);
 }
 EXPORT_SYMBOL_GPL(usb_hcd_irq);
 
-- 
2.8.0.rc2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to