diff options
Diffstat (limited to 'drivers/net/cassini.c')
-rw-r--r-- | drivers/net/cassini.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 86909cfb14de..023d205e9054 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -2347,7 +2347,7 @@ static int cas_rx_ringN(struct cas *cp, int ring, int budget) | |||
2347 | drops = 0; | 2347 | drops = 0; |
2348 | while (1) { | 2348 | while (1) { |
2349 | struct cas_rx_comp *rxc = rxcs + entry; | 2349 | struct cas_rx_comp *rxc = rxcs + entry; |
2350 | struct sk_buff *skb; | 2350 | struct sk_buff *uninitialized_var(skb); |
2351 | int type, len; | 2351 | int type, len; |
2352 | u64 words[4]; | 2352 | u64 words[4]; |
2353 | int i, dring; | 2353 | int i, dring; |
@@ -2405,7 +2405,6 @@ static int cas_rx_ringN(struct cas *cp, int ring, int budget) | |||
2405 | cp->net_stats[ring].rx_packets++; | 2405 | cp->net_stats[ring].rx_packets++; |
2406 | cp->net_stats[ring].rx_bytes += len; | 2406 | cp->net_stats[ring].rx_bytes += len; |
2407 | spin_unlock(&cp->stat_lock[ring]); | 2407 | spin_unlock(&cp->stat_lock[ring]); |
2408 | cp->dev->last_rx = jiffies; | ||
2409 | 2408 | ||
2410 | next: | 2409 | next: |
2411 | npackets++; | 2410 | npackets++; |
@@ -4988,7 +4987,6 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
4988 | int i, err, pci_using_dac; | 4987 | int i, err, pci_using_dac; |
4989 | u16 pci_cmd; | 4988 | u16 pci_cmd; |
4990 | u8 orig_cacheline_size = 0, cas_cacheline_size = 0; | 4989 | u8 orig_cacheline_size = 0, cas_cacheline_size = 0; |
4991 | DECLARE_MAC_BUF(mac); | ||
4992 | 4990 | ||
4993 | if (cas_version_printed++ == 0) | 4991 | if (cas_version_printed++ == 0) |
4994 | printk(KERN_INFO "%s", version); | 4992 | printk(KERN_INFO "%s", version); |
@@ -5201,12 +5199,12 @@ static int __devinit cas_init_one(struct pci_dev *pdev, | |||
5201 | 5199 | ||
5202 | i = readl(cp->regs + REG_BIM_CFG); | 5200 | i = readl(cp->regs + REG_BIM_CFG); |
5203 | printk(KERN_INFO "%s: Sun Cassini%s (%sbit/%sMHz PCI/%s) " | 5201 | printk(KERN_INFO "%s: Sun Cassini%s (%sbit/%sMHz PCI/%s) " |
5204 | "Ethernet[%d] %s\n", dev->name, | 5202 | "Ethernet[%d] %pM\n", dev->name, |
5205 | (cp->cas_flags & CAS_FLAG_REG_PLUS) ? "+" : "", | 5203 | (cp->cas_flags & CAS_FLAG_REG_PLUS) ? "+" : "", |
5206 | (i & BIM_CFG_32BIT) ? "32" : "64", | 5204 | (i & BIM_CFG_32BIT) ? "32" : "64", |
5207 | (i & BIM_CFG_66MHZ) ? "66" : "33", | 5205 | (i & BIM_CFG_66MHZ) ? "66" : "33", |
5208 | (cp->phy_type == CAS_PHY_SERDES) ? "Fi" : "Cu", pdev->irq, | 5206 | (cp->phy_type == CAS_PHY_SERDES) ? "Fi" : "Cu", pdev->irq, |
5209 | print_mac(mac, dev->dev_addr)); | 5207 | dev->dev_addr); |
5210 | 5208 | ||
5211 | pci_set_drvdata(pdev, dev); | 5209 | pci_set_drvdata(pdev, dev); |
5212 | cp->hw_running = 1; | 5210 | cp->hw_running = 1; |