diff options
author | Thomas Miletich <thomas.miletich@gmail.com> | 2011-03-28 14:48:59 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-28 13:57:42 +0100 |
commit | db156f5be6379a7cfa5ad01f55c9e12e3ab75151 (patch) | |
tree | 3560620422c60d953ac2bfd80d1d6336b1707da0 | |
parent | f9e358117560162ae3241c1ec426d5c837481246 (diff) | |
download | ipxe-db156f5be6379a7cfa5ad01f55c9e12e3ab75151.tar.gz |
[forcedeth] Avoid unused-but-set variable warning in gcc 4.6
Avoid unused-but-set variable warning in gcc 4.6 which was introduced
by commit 9215b7f ("[forcedeth] Clear the MII link status register on
link status changes").
Signed-off-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/drivers/net/forcedeth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/net/forcedeth.c b/src/drivers/net/forcedeth.c index 918f502f4..a54eae441 100644 --- a/src/drivers/net/forcedeth.c +++ b/src/drivers/net/forcedeth.c @@ -968,10 +968,9 @@ forcedeth_link_status ( struct net_device *netdev ) { struct forcedeth_private *priv = netdev_priv ( netdev ); void *ioaddr = priv->mmio_addr; - u32 mii_status; - /* Clear the MII link change status */ - mii_status = readl ( ioaddr + NvRegMIIStatus ); + /* Clear the MII link change status by reading the MIIStatus register */ + readl ( ioaddr + NvRegMIIStatus ); writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus ); if ( nv_update_linkspeed ( priv ) == 1 ) |