diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pasemi_mac.c | 2 | ||||
-rw-r--r-- | drivers/net/spider_net.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index dcd199045613..5b7a574ce571 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -954,7 +954,6 @@ static irqreturn_t pasemi_mac_rx_intr(int irq, void *data) | |||
954 | { | 954 | { |
955 | const struct pasemi_mac_rxring *rxring = data; | 955 | const struct pasemi_mac_rxring *rxring = data; |
956 | struct pasemi_mac *mac = rxring->mac; | 956 | struct pasemi_mac *mac = rxring->mac; |
957 | struct net_device *dev = mac->netdev; | ||
958 | const struct pasemi_dmachan *chan = &rxring->chan; | 957 | const struct pasemi_dmachan *chan = &rxring->chan; |
959 | unsigned int reg; | 958 | unsigned int reg; |
960 | 959 | ||
@@ -1634,7 +1633,6 @@ static void pasemi_mac_set_rx_mode(struct net_device *dev) | |||
1634 | static int pasemi_mac_poll(struct napi_struct *napi, int budget) | 1633 | static int pasemi_mac_poll(struct napi_struct *napi, int budget) |
1635 | { | 1634 | { |
1636 | struct pasemi_mac *mac = container_of(napi, struct pasemi_mac, napi); | 1635 | struct pasemi_mac *mac = container_of(napi, struct pasemi_mac, napi); |
1637 | struct net_device *dev = mac->netdev; | ||
1638 | int pkts; | 1636 | int pkts; |
1639 | 1637 | ||
1640 | pasemi_mac_clean_tx(tx_ring(mac)); | 1638 | pasemi_mac_clean_tx(tx_ring(mac)); |
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index c5c123d3af57..88d2c67788df 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
@@ -1277,7 +1277,6 @@ bad_desc: | |||
1277 | static int spider_net_poll(struct napi_struct *napi, int budget) | 1277 | static int spider_net_poll(struct napi_struct *napi, int budget) |
1278 | { | 1278 | { |
1279 | struct spider_net_card *card = container_of(napi, struct spider_net_card, napi); | 1279 | struct spider_net_card *card = container_of(napi, struct spider_net_card, napi); |
1280 | struct net_device *netdev = card->netdev; | ||
1281 | int packets_done = 0; | 1280 | int packets_done = 0; |
1282 | 1281 | ||
1283 | while (packets_done < budget) { | 1282 | while (packets_done < budget) { |