* [PATCH v2] phy: tegra: xusb: remove unused variable
@ 2019-10-09 7:23 Chunfeng Yun
0 siblings, 0 replies; only message in thread
From: Chunfeng Yun @ 2019-10-09 7:23 UTC (permalink / raw)
To: Kishon Vijay Abraham I
Cc: Thierry Reding, JC Kuo, Jonathan Hunter, Matthias Brugger,
linux-kernel, linux-tegra, linux-arm-kernel, linux-mediatek,
Chunfeng Yun
The local variable @priv is set but not used, can be removed
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Thierry Reding <treding@nvidia.com>
---
v2: add Acked-by: Thierry
---
drivers/phy/tegra/xusb-tegra210.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/phy/tegra/xusb-tegra210.c b/drivers/phy/tegra/xusb-tegra210.c
index 0c0df6897a3b..bc71c897298a 100644
--- a/drivers/phy/tegra/xusb-tegra210.c
+++ b/drivers/phy/tegra/xusb-tegra210.c
@@ -1225,13 +1225,10 @@ static int tegra210_hsic_phy_power_on(struct phy *phy)
struct tegra_xusb_hsic_lane *hsic = to_hsic_lane(lane);
struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad);
struct tegra_xusb_padctl *padctl = lane->pad->padctl;
- struct tegra210_xusb_padctl *priv;
unsigned int index = lane->index;
u32 value;
int err;
- priv = to_tegra210_xusb_padctl(padctl);
-
err = regulator_enable(pad->supply);
if (err)
return err;
--
2.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-09 7:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 7:23 [PATCH v2] phy: tegra: xusb: remove unused variable Chunfeng Yun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®