projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a5c19
)
net: marvell.c fix sparse shadowed variable warning
author
Harvey Harrison
<harvey.harrison@gmail.com>
Thu, 3 Apr 2008 00:33:35 +0000
(17:33 -0700)
committer
Jeff Garzik
<jeff@garzik.org>
Fri, 4 Apr 2008 21:26:15 +0000
(17:26 -0400)
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>
drivers/net/phy/marvell.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/phy/marvell.c
b/drivers/net/phy/marvell.c
index 33539917e9b8008d6890e872e9d4ab7550b06d6d..32a8503a7acdc3ade6fcb1fd656a2009ec9eda09 100644
(file)
--- a/
drivers/net/phy/marvell.c
+++ b/
drivers/net/phy/marvell.c
@@
-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;