aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-28 09:45:29 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-03 09:21:56 -0400
commit05387733ed57b6a971fc88f77cc6522eaafd46f2 (patch)
tree2d0b90ea9bb2b669d34633ec52fed94ea02f7781
parent119a7fdfeecefa5a4062256ac2dcd3b69eaa8414 (diff)
usb: host: ehci-st: Remove set but not used variable 'ehci'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/usb/host/ehci-st.c: In function st_ehci_platform_probe: drivers/usb/host/ehci-st.c:155:19: warning: variable ehci set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ehci-st.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-st.c b/drivers/usb/host/ehci-st.c
index dc42981047c9..ccb4e611001d 100644
--- a/drivers/usb/host/ehci-st.c
+++ b/drivers/usb/host/ehci-st.c
@@ -152,7 +152,6 @@ static int st_ehci_platform_probe(struct platform_device *dev)
152 struct resource *res_mem; 152 struct resource *res_mem;
153 struct usb_ehci_pdata *pdata = &ehci_platform_defaults; 153 struct usb_ehci_pdata *pdata = &ehci_platform_defaults;
154 struct st_ehci_platform_priv *priv; 154 struct st_ehci_platform_priv *priv;
155 struct ehci_hcd *ehci;
156 int err, irq, clk = 0; 155 int err, irq, clk = 0;
157 156
158 if (usb_disabled()) 157 if (usb_disabled())
@@ -177,7 +176,6 @@ static int st_ehci_platform_probe(struct platform_device *dev)
177 platform_set_drvdata(dev, hcd); 176 platform_set_drvdata(dev, hcd);
178 dev->dev.platform_data = pdata; 177 dev->dev.platform_data = pdata;
179 priv = hcd_to_ehci_priv(hcd); 178 priv = hcd_to_ehci_priv(hcd);
180 ehci = hcd_to_ehci(hcd);
181 179
182 priv->phy = devm_phy_get(&dev->dev, "usb"); 180 priv->phy = devm_phy_get(&dev->dev, "usb");
183 if (IS_ERR(priv->phy)) { 181 if (IS_ERR(priv->phy)) {