mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-15 01:58:22 +00:00
[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>
This commit is contained in:
parent
27762ba689
commit
c0215780de
@ -1645,7 +1645,6 @@ static void sky2_status_intr(struct sky2_hw *hw, u16 idx)
|
||||
|
||||
rmb();
|
||||
do {
|
||||
struct sky2_port *sky2;
|
||||
struct sky2_status_le *le = hw->st_le + hw->st_idx;
|
||||
unsigned port;
|
||||
struct net_device *dev;
|
||||
@ -1659,7 +1658,6 @@ static void sky2_status_intr(struct sky2_hw *hw, u16 idx)
|
||||
|
||||
port = le->css & CSS_LINK_BIT;
|
||||
dev = hw->dev[port];
|
||||
sky2 = netdev_priv(dev);
|
||||
length = le16_to_cpu(le->length);
|
||||
status = le32_to_cpu(le->status);
|
||||
|
||||
@ -2158,9 +2156,6 @@ static void sky2_set_multicast(struct net_device *dev)
|
||||
unsigned port = sky2->port;
|
||||
u16 reg;
|
||||
u8 filter[8];
|
||||
int rx_pause;
|
||||
|
||||
rx_pause = (sky2->flow_status == FC_RX || sky2->flow_status == FC_BOTH);
|
||||
|
||||
reg = gma_read16(hw, port, GM_RX_CTRL);
|
||||
reg |= GM_RXCR_UCF_ENA;
|
||||
|
Loading…
x
Reference in New Issue
Block a user