mirror of https://github.com/ipxe/ipxe.git
[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>pull/1/head
parent
fde62b235f
commit
27762ba689
|
@ -676,7 +676,7 @@ forcedeth_open ( 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;
|
||||||
int i, ret = 1;
|
int i;
|
||||||
int rc;
|
int rc;
|
||||||
u32 low;
|
u32 low;
|
||||||
|
|
||||||
|
@ -772,7 +772,7 @@ forcedeth_open ( struct net_device *netdev )
|
||||||
readl ( ioaddr + NvRegMIIStatus );
|
readl ( ioaddr + NvRegMIIStatus );
|
||||||
writel ( NVREG_MIISTAT_MASK_ALL, ioaddr + NvRegMIIStatus );
|
writel ( NVREG_MIISTAT_MASK_ALL, ioaddr + NvRegMIIStatus );
|
||||||
priv->linkspeed = 0;
|
priv->linkspeed = 0;
|
||||||
ret = nv_update_linkspeed ( priv );
|
nv_update_linkspeed ( priv );
|
||||||
nv_start_rx ( priv );
|
nv_start_rx ( priv );
|
||||||
nv_start_tx ( priv );
|
nv_start_tx ( priv );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue