diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/spider_net.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index c15e97253ede..108adbf5b5eb 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
@@ -175,12 +175,10 @@ spider_net_setup_aneg(struct spider_net_card *card) | |||
175 | { | 175 | { |
176 | struct mii_phy *phy = &card->phy; | 176 | struct mii_phy *phy = &card->phy; |
177 | u32 advertise = 0; | 177 | u32 advertise = 0; |
178 | u16 bmcr, bmsr, stat1000, estat; | 178 | u16 bmsr, estat; |
179 | 179 | ||
180 | bmcr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMCR); | 180 | bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); |
181 | bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); | 181 | estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); |
182 | stat1000 = spider_net_read_phy(card->netdev, phy->mii_id, MII_STAT1000); | ||
183 | estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); | ||
184 | 182 | ||
185 | if (bmsr & BMSR_10HALF) | 183 | if (bmsr & BMSR_10HALF) |
186 | advertise |= ADVERTISED_10baseT_Half; | 184 | advertise |= ADVERTISED_10baseT_Half; |