Browse Source

[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>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
27762ba689
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/net/forcedeth.c

+ 2
- 2
src/drivers/net/forcedeth.c View File

@@ -676,7 +676,7 @@ forcedeth_open ( struct net_device *netdev )
676 676
 {
677 677
 	struct forcedeth_private *priv = netdev_priv ( netdev );
678 678
 	void *ioaddr = priv->mmio_addr;
679
-	int i, ret = 1;
679
+	int i;
680 680
 	int rc;
681 681
 	u32 low;
682 682
 
@@ -772,7 +772,7 @@ forcedeth_open ( struct net_device *netdev )
772 772
 	readl ( ioaddr + NvRegMIIStatus );
773 773
 	writel ( NVREG_MIISTAT_MASK_ALL, ioaddr + NvRegMIIStatus );
774 774
 	priv->linkspeed = 0;
775
-	ret = nv_update_linkspeed ( priv );
775
+	nv_update_linkspeed ( priv );
776 776
 	nv_start_rx ( priv );
777 777
 	nv_start_tx ( priv );
778 778
 

Loading…
Cancel
Save