On Wed, Jan 4, 2017 at 3:51 AM, Lu Baolu <baolu...@linux.intel.com> wrote:
> Remove the unnecessary return line in xhci_pci_setup().
>
> Signed-off-by: Lu Baolu <baolu...@linux.intel.com>
> ---
>  drivers/usb/host/xhci-pci.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
> index e96ae80..ace3f57 100644
> --- a/drivers/usb/host/xhci-pci.c
> +++ b/drivers/usb/host/xhci-pci.c
> @@ -242,8 +242,6 @@ static int xhci_pci_setup(struct usb_hcd *hcd)
>
>         /* Find any debug ports */
>         retval = xhci_pci_reinit(xhci, pdev);
> -       if (!retval)
> -               return retval;
>
>         return retval;

Then better just

return xhci_pci_reinit(xhci, pdev);

-- 
With Best Regards,
Andy Shevchenko
--
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