david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[forcedeth] Avoid unused variable warning in gcc 4.6

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-03-16 19:17:59 +00:00
parent fde62b235f
commit 27762ba689
1 changed files with 2 additions and 2 deletions

View File

@ -676,7 +676,7 @@ forcedeth_open ( struct net_device *netdev )
{
struct forcedeth_private *priv = netdev_priv ( netdev );
void *ioaddr = priv->mmio_addr;
int i, ret = 1;
int i;
int rc;
u32 low;
@ -772,7 +772,7 @@ forcedeth_open ( struct net_device *netdev )
readl ( ioaddr + NvRegMIIStatus );
writel ( NVREG_MIISTAT_MASK_ALL, ioaddr + NvRegMIIStatus );
priv->linkspeed = 0;
ret = nv_update_linkspeed ( priv );
nv_update_linkspeed ( priv );
nv_start_rx ( priv );
nv_start_tx ( priv );