Commit 3cc4502c authored by Vinod Koul's avatar Vinod Koul

phy: ti-pipe3: remove set but unused variable

ti_pipe3_power_on() sets variable 'ret' but never uses it, so remove it.

drivers/phy/ti/phy-ti-pipe3.c:340:6: warning: variable ‘ret’ set but not
used [-Wunused-but-set-variable]

Link: https://lore.kernel.org/r/20200629145010.122675-4-vkoul@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 3b0163bb
...@@ -337,7 +337,6 @@ static int ti_pipe3_power_on(struct phy *x) ...@@ -337,7 +337,6 @@ static int ti_pipe3_power_on(struct phy *x)
{ {
u32 val; u32 val;
u32 mask; u32 mask;
int ret;
unsigned long rate; unsigned long rate;
struct ti_pipe3 *phy = phy_get_drvdata(x); struct ti_pipe3 *phy = phy_get_drvdata(x);
bool rx_pending = false; bool rx_pending = false;
...@@ -355,7 +354,7 @@ static int ti_pipe3_power_on(struct phy *x) ...@@ -355,7 +354,7 @@ static int ti_pipe3_power_on(struct phy *x)
rate = rate / 1000000; rate = rate / 1000000;
mask = OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_MASK; mask = OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_MASK;
val = rate << OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_SHIFT; val = rate << OMAP_CTRL_PIPE3_PHY_PWRCTL_CLK_FREQ_SHIFT;
ret = regmap_update_bits(phy->phy_power_syscon, phy->power_reg, regmap_update_bits(phy->phy_power_syscon, phy->power_reg,
mask, val); mask, val);
/* /*
* For PCIe, TX and RX must be powered on simultaneously. * For PCIe, TX and RX must be powered on simultaneously.
......
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