mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
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>
This commit is contained in:
parent
42d068472d
commit
80f96fb186
1 changed files with 1 additions and 1 deletions
|
@ -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_inst *ins = phy_get_drvdata(gphy);
|
||||||
struct cdns_sierra_phy *phy = dev_get_drvdata(gphy->dev.parent);
|
struct cdns_sierra_phy *phy = dev_get_drvdata(gphy->dev.parent);
|
||||||
struct regmap *regmap = phy->regmap;
|
struct regmap *regmap;
|
||||||
int i, j;
|
int i, j;
|
||||||
struct cdns_reg_pairs *cmn_vals, *ln_vals;
|
struct cdns_reg_pairs *cmn_vals, *ln_vals;
|
||||||
u32 num_cmn_regs, num_ln_regs;
|
u32 num_cmn_regs, num_ln_regs;
|
||||||
|
|
Loading…
Reference in a new issue