mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03: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:
@@ -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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user