mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-15 10:08:18 +00:00
[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:
parent
fde62b235f
commit
27762ba689
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user