diff options
author | Sylvain Rochet <sylvain.rochet@finsecur.com> | 2015-01-20 08:39:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 08:06:42 -0500 |
commit | 3b3394aff79770681fd9a5a02cd4b70518899b78 (patch) | |
tree | 342b162ef3bedbd474070bd13e4bd9cdaf597b52 | |
parent | 1b207459f7ab5f130f44b89ad07f3e8769ea5c17 (diff) |
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 <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>
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
142 | struct at91_usbh_data *board; | 142 | struct at91_usbh_data *board; |
143 | struct ohci_hcd *ohci; | 143 | struct ohci_hcd *ohci; |
144 | int retval; | 144 | int retval; |
145 | struct usb_hcd *hcd = NULL; | 145 | struct usb_hcd *hcd; |
146 | struct ohci_at91_priv *ohci_at91; | 146 | struct ohci_at91_priv *ohci_at91; |
147 | struct device *dev = &pdev->dev; | 147 | struct device *dev = &pdev->dev; |
148 | struct resource *res; | 148 | struct resource *res; |