phy: cadence: Sierra: remove redundant initialization of pointer regmap
authorColin Ian King <colin.king@canonical.com>
Wed, 8 Jan 2020 06:29:36 +0000 (11:59 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 14 Jan 2020 05:20:19 +0000 (10:50 +0530)
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>
drivers/phy/cadence/phy-cadence-sierra.c

index eb87f1a..ecfb1f9 100644 (file)
@@ -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;