From: Ishizaki Kou Date: Thu, 10 May 2007 17:18:48 +0000 (-0500) Subject: spidernet: remove unnecessary accesses to phy X-Git-Tag: v2.6.22-rc1~20^2~13 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a1c38a4a5dd36487b65c4b48e37ecfdd080817f3;p=linux-2.6-omap-h63xx.git spidernet: remove unnecessary accesses to phy This patch removes unnecessary accesses to phy registers. Signed-off-by: Kou Ishizaki Signed-off-by: Linas Vepstas Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index c15e97253ed..108adbf5b5e 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) { struct mii_phy *phy = &card->phy; u32 advertise = 0; - u16 bmcr, bmsr, stat1000, estat; + u16 bmsr, estat; - bmcr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMCR); - bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); - stat1000 = spider_net_read_phy(card->netdev, phy->mii_id, MII_STAT1000); - estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); + bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); + estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); if (bmsr & BMSR_10HALF) advertise |= ADVERTISED_10baseT_Half;