mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
[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>
This commit is contained in:
committed by
Michael Brown
parent
f9e3581175
commit
db156f5be6
@@ -968,10 +968,9 @@ forcedeth_link_status ( struct net_device *netdev )
|
|||||||
{
|
{
|
||||||
struct forcedeth_private *priv = netdev_priv ( netdev );
|
struct forcedeth_private *priv = netdev_priv ( netdev );
|
||||||
void *ioaddr = priv->mmio_addr;
|
void *ioaddr = priv->mmio_addr;
|
||||||
u32 mii_status;
|
|
||||||
|
|
||||||
/* Clear the MII link change status */
|
/* Clear the MII link change status by reading the MIIStatus register */
|
||||||
mii_status = readl ( ioaddr + NvRegMIIStatus );
|
readl ( ioaddr + NvRegMIIStatus );
|
||||||
writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
|
writel ( NVREG_MIISTAT_LINKCHANGE, ioaddr + NvRegMIIStatus );
|
||||||
|
|
||||||
if ( nv_update_linkspeed ( priv ) == 1 )
|
if ( nv_update_linkspeed ( priv ) == 1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user