net: Use netdev_alloc_skb_ip_align()
[deliverable/linux.git] / drivers / net / 8139too.c
index 4a362875502661f8d3e7bae4adf78a3952114b43..7e333f73b22853d40092bd7022b836d61483fdca 100644 (file)
@@ -2004,9 +2004,8 @@ no_early_rx:
                /* Malloc up new buffer, compatible with net-2e. */
                /* Omit the four octet CRC from the length. */
 
-               skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN);
+               skb = netdev_alloc_skb_ip_align(dev, pkt_size);
                if (likely(skb)) {
-                       skb_reserve (skb, NET_IP_ALIGN);        /* 16 byte align the IP fields. */
 #if RX_BUF_IDX == 3
                        wrap_copy(skb, rx_ring, ring_offset+4, pkt_size);
 #else
This page took 0.039692 seconds and 5 git commands to generate.