diff options
-rw-r--r-- | drivers/net/sky2.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 1407ff2da41e..3c5d00403e5e 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1825,7 +1825,6 @@ static int sky2_poll(struct net_device *dev0, int *budget) | |||
1825 | struct sk_buff *skb; | 1825 | struct sk_buff *skb; |
1826 | u32 status; | 1826 | u32 status; |
1827 | u16 length; | 1827 | u16 length; |
1828 | u8 op; | ||
1829 | 1828 | ||
1830 | le = hw->st_le + hw->st_idx; | 1829 | le = hw->st_le + hw->st_idx; |
1831 | hw->st_idx = (hw->st_idx + 1) % STATUS_RING_SIZE; | 1830 | hw->st_idx = (hw->st_idx + 1) % STATUS_RING_SIZE; |
@@ -1839,10 +1838,8 @@ static int sky2_poll(struct net_device *dev0, int *budget) | |||
1839 | sky2 = netdev_priv(dev); | 1838 | sky2 = netdev_priv(dev); |
1840 | status = le32_to_cpu(le->status); | 1839 | status = le32_to_cpu(le->status); |
1841 | length = le16_to_cpu(le->length); | 1840 | length = le16_to_cpu(le->length); |
1842 | op = le->opcode & ~HW_OWNER; | ||
1843 | le->opcode = 0; | ||
1844 | 1841 | ||
1845 | switch (op) { | 1842 | switch (le->opcode & ~HW_OWNER) { |
1846 | case OP_RXSTAT: | 1843 | case OP_RXSTAT: |
1847 | skb = sky2_receive(sky2, length, status); | 1844 | skb = sky2_receive(sky2, length, status); |
1848 | if (!skb) | 1845 | if (!skb) |
@@ -1890,7 +1887,7 @@ static int sky2_poll(struct net_device *dev0, int *budget) | |||
1890 | default: | 1887 | default: |
1891 | if (net_ratelimit()) | 1888 | if (net_ratelimit()) |
1892 | printk(KERN_WARNING PFX | 1889 | printk(KERN_WARNING PFX |
1893 | "unknown status opcode 0x%x\n", op); | 1890 | "unknown status opcode 0x%x\n", le->opcode); |
1894 | break; | 1891 | break; |
1895 | } | 1892 | } |
1896 | } | 1893 | } |