diff options
Diffstat (limited to 'drivers/net/tulip/uli526x.c')
-rw-r--r-- | drivers/net/tulip/uli526x.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index 229158e8e4b..9a5850fa644 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -828,14 +828,12 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info | |||
828 | ( (skb = dev_alloc_skb(rxlen + 2) ) | 828 | ( (skb = dev_alloc_skb(rxlen + 2) ) |
829 | != NULL) ) { | 829 | != NULL) ) { |
830 | /* size less than COPY_SIZE, allocate a rxlen SKB */ | 830 | /* size less than COPY_SIZE, allocate a rxlen SKB */ |
831 | skb->dev = dev; | ||
832 | skb_reserve(skb, 2); /* 16byte align */ | 831 | skb_reserve(skb, 2); /* 16byte align */ |
833 | memcpy(skb_put(skb, rxlen), rxptr->rx_skb_ptr->tail, rxlen); | 832 | memcpy(skb_put(skb, rxlen), rxptr->rx_skb_ptr->tail, rxlen); |
834 | uli526x_reuse_skb(db, rxptr->rx_skb_ptr); | 833 | uli526x_reuse_skb(db, rxptr->rx_skb_ptr); |
835 | } else { | 834 | } else |
836 | skb->dev = dev; | ||
837 | skb_put(skb, rxlen); | 835 | skb_put(skb, rxlen); |
838 | } | 836 | |
839 | skb->protocol = eth_type_trans(skb, dev); | 837 | skb->protocol = eth_type_trans(skb, dev); |
840 | netif_rx(skb); | 838 | netif_rx(skb); |
841 | dev->last_rx = jiffies; | 839 | dev->last_rx = jiffies; |