From db156f5be6379a7cfa5ad01f55c9e12e3ab75151 Mon Sep 17 00:00:00 2001 From: Thomas Miletich Date: Mon, 28 Mar 2011 14:48:59 +0200 Subject: [PATCH] [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 Signed-off-by: Michael Brown --- src/drivers/net/forcedeth.c | 5 ++--- 1 file 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 )