From: Sylvain Rochet Date: Tue, 20 Jan 2015 13:39:03 +0000 (+0100) Subject: USB: host: ohci-at91: usb_hcd_at91_probe(), remove useless stack initialisation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3b3394aff79770681fd9a5a02cd4b70518899b78;p=openwrt%2Fstaging%2Fblogic.git USB: host: ohci-at91: usb_hcd_at91_probe(), remove useless stack initialisation struct usb_hcd *hcd = NULL; ... hcd = usb_create_hcd(driver, dev, "at91"); This patch remove *hcd useless initialisation Signed-off-by: Sylvain Rochet Acked-by: Boris Brezillon Acked-by: Alan Stern Acked-by: Nicolas Ferre Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index eb7457fda58b..e2b8b7bc08ec 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -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;