summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-01-08 11:59:36 +0530
committerKishon Vijay Abraham I <kishon@ti.com>2020-01-14 10:50:19 +0530
commit80f96fb186a3134a886d696c0a1ecc1962f36c89 (patch)
treee0a8335b18da5c50bb3bec4d8b1661c7f5880391 /drivers/phy
parent42d068472ddf532f3ca2bcdd06d1ca6b53f57e5e (diff)
phy: cadence: Sierra: remove redundant initialization of pointer regmap
The pointer regmap is being initialized with a value that is never read and it is being updated later with a new value from phy->regmap_common_cdb. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/cadence/phy-cadence-sierra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c
index eb87f1a0a596..ecfb1f9de2e3 100644
--- a/drivers/phy/cadence/phy-cadence-sierra.c
+++ b/drivers/phy/cadence/phy-cadence-sierra.c
@@ -272,7 +272,7 @@ static int cdns_sierra_phy_init(struct phy *gphy)
{
struct cdns_sierra_inst *ins = phy_get_drvdata(gphy);
struct cdns_sierra_phy *phy = dev_get_drvdata(gphy->dev.parent);
- struct regmap *regmap = phy->regmap;
+ struct regmap *regmap;
int i, j;
struct cdns_reg_pairs *cmn_vals, *ln_vals;
u32 num_cmn_regs, num_ln_regs;