USB: host: ohci-at91: usb_hcd_at91_probe(), remove useless stack initialisation
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Tue, 20 Jan 2015 13:39:03 +0000 (14:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 13:06:42 +0000 (21:06 +0800)
struct usb_hcd *hcd = NULL;
...
hcd = usb_create_hcd(driver, dev, "at91");

This patch remove *hcd useless initialisation

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-at91.c

index eb7457fda58b83fd68844ddae9d8472565b67138..e2b8b7bc08ec119f3cd02cd443589b32ecefcf93 100644 (file)
@@ -142,7 +142,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
        struct at91_usbh_data *board;
        struct ohci_hcd *ohci;
        int retval;
-       struct usb_hcd *hcd = NULL;
+       struct usb_hcd *hcd;
        struct ohci_at91_priv *ohci_at91;
        struct device *dev = &pdev->dev;
        struct resource *res;