Clean up redundant PHY write line for ULi526x Ethernet driver
authorRoy Zang <tie-fei.zang@freescale.com>
Mon, 24 Sep 2007 08:57:42 +0000 (16:57 +0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:53:45 +0000 (16:53 -0700)
Clean up redundant PHY write line for ULi526x Ethernet
Driver.

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tulip/uli526x.c

index 53c7523..e64bde4 100644 (file)
@@ -1604,7 +1604,6 @@ static void uli526x_process_mode(struct uli526x_board_info *db)
                        case ULI526X_100MFD: phy_reg = 0x2100; break;
                        }
                        phy_write(db->ioaddr, db->phy_addr, 0, phy_reg, db->chip_id);
-                               phy_write(db->ioaddr, db->phy_addr, 0, phy_reg, db->chip_id);
                }
        }
 }