Commit 2e5a359e authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

usb: host: ohci-st: Remove set but not used variable 'ohci'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/host/ohci-st.c: In function st_ohci_platform_probe:
drivers/usb/host/ohci-st.c:135:19: warning: variable ohci set but not used [-Wunused-but-set-variable]

It's never used, so can be removed.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05387733
...@@ -132,7 +132,6 @@ static int st_ohci_platform_probe(struct platform_device *dev) ...@@ -132,7 +132,6 @@ static int st_ohci_platform_probe(struct platform_device *dev)
struct resource *res_mem; struct resource *res_mem;
struct usb_ohci_pdata *pdata = &ohci_platform_defaults; struct usb_ohci_pdata *pdata = &ohci_platform_defaults;
struct st_ohci_platform_priv *priv; struct st_ohci_platform_priv *priv;
struct ohci_hcd *ohci;
int err, irq, clk = 0; int err, irq, clk = 0;
if (usb_disabled()) if (usb_disabled())
...@@ -158,7 +157,6 @@ static int st_ohci_platform_probe(struct platform_device *dev) ...@@ -158,7 +157,6 @@ static int st_ohci_platform_probe(struct platform_device *dev)
platform_set_drvdata(dev, hcd); platform_set_drvdata(dev, hcd);
dev->dev.platform_data = pdata; dev->dev.platform_data = pdata;
priv = hcd_to_ohci_priv(hcd); priv = hcd_to_ohci_priv(hcd);
ohci = hcd_to_ohci(hcd);
priv->phy = devm_phy_get(&dev->dev, "usb"); priv->phy = devm_phy_get(&dev->dev, "usb");
if (IS_ERR(priv->phy)) { if (IS_ERR(priv->phy)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment