Browse Source

[sky2] 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
c0215780de
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/drivers/net/sky2.c

+ 0
- 5
src/drivers/net/sky2.c View File

@@ -1645,7 +1645,6 @@ static void sky2_status_intr(struct sky2_hw *hw, u16 idx)
1645 1645
 
1646 1646
 	rmb();
1647 1647
 	do {
1648
-		struct sky2_port *sky2;
1649 1648
 		struct sky2_status_le *le  = hw->st_le + hw->st_idx;
1650 1649
 		unsigned port;
1651 1650
 		struct net_device *dev;
@@ -1659,7 +1658,6 @@ static void sky2_status_intr(struct sky2_hw *hw, u16 idx)
1659 1658
 
1660 1659
 		port = le->css & CSS_LINK_BIT;
1661 1660
 		dev = hw->dev[port];
1662
-		sky2 = netdev_priv(dev);
1663 1661
 		length = le16_to_cpu(le->length);
1664 1662
 		status = le32_to_cpu(le->status);
1665 1663
 
@@ -2158,9 +2156,6 @@ static void sky2_set_multicast(struct net_device *dev)
2158 2156
 	unsigned port = sky2->port;
2159 2157
 	u16 reg;
2160 2158
 	u8 filter[8];
2161
-	int rx_pause;
2162
-
2163
-	rx_pause = (sky2->flow_status == FC_RX || sky2->flow_status == FC_BOTH);
2164 2159
 
2165 2160
 	reg = gma_read16(hw, port, GM_RX_CTRL);
2166 2161
 	reg |= GM_RXCR_UCF_ENA;

Loading…
Cancel
Save