usb: host: ehci-spear: Remove redundant checks
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 23 May 2013 03:53:00 +0000 (09:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 12:32:53 +0000 (21:32 +0900)
'hcd' can never be NULL and the spear_ehci_hcd_drv_remove routine
will never be called in_interrupt. Hence remove these checks.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-spear.c

index f5ac4e202bb6ee480aca02c1eef2c8138b5908a6..1cf0adba3fc8dd4b3e071e8eeef769c5e9fbf1a2 100644 (file)
@@ -148,10 +148,6 @@ static int spear_ehci_hcd_drv_remove(struct platform_device *pdev)
        struct usb_hcd *hcd = platform_get_drvdata(pdev);
        struct spear_ehci *sehci = to_spear_ehci(hcd);
 
-       if (!hcd)
-               return 0;
-       if (in_interrupt())
-               BUG();
        usb_remove_hcd(hcd);
 
        if (sehci->clk)