Skip to content

Commit

Permalink
net: marvell.c fix sparse shadowed variable warning
Browse files Browse the repository at this point in the history
The other if blocks don't redeclare temp, remove the redeclaration in
the final if() block.

drivers/net/phy/marvell.c:214:7: warning: symbol 'temp' shadows an earlier one
drivers/net/phy/marvell.c:160:6: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Harvey Harrison authored and Jeff Garzik committed Apr 4, 2008
1 parent b2a5c19 commit 5da4e37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/phy/marvell.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ static int m88e1111_config_init(struct phy_device *phydev)
}

if (phydev->interface == PHY_INTERFACE_MODE_SGMII) {
int temp;

temp = phy_read(phydev, MII_M1111_PHY_EXT_SR);
if (temp < 0)
return temp;
Expand Down

0 comments on commit 5da4e37

Please sign in to comment.