Browse Source

[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>
tags/v1.20.1
Thomas Miletich 13 years ago
parent
commit
db156f5be6
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/drivers/net/forcedeth.c

+ 2
- 3
src/drivers/net/forcedeth.c View File

@@ -968,10 +968,9 @@ forcedeth_link_status ( struct net_device *netdev )
968 968
 {
969 969
 	struct forcedeth_private *priv = netdev_priv ( netdev );
970 970
 	void *ioaddr = priv->mmio_addr;
971
-	u32 mii_status;
972 971
 
973
-	/* Clear the MII link change status */
974
-	mii_status = readl ( ioaddr + NvRegMIIStatus );
972
+	/* Clear the MII link change status by reading the MIIStatus register */
973
+	readl ( ioaddr + NvRegMIIStatus );
975 974
 	writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
976 975
 
977 976
 	if ( nv_update_linkspeed ( priv ) == 1 )

Loading…
Cancel
Save