hso: convert dev_alloc_skb() to netdev_alloc_skb()
authorPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Thu, 4 Jun 2009 05:50:29 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:20:20 +0000 (00:20 -0700)
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c

index 5ddd8c4f9019f7a5168528455d01912712db9985..e3580f42c89908e065e532a7e9138f6dcd2a0b2c 100644 (file)
@@ -899,15 +899,14 @@ static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt,
                                        continue;
                                }
                                /* Allocate an sk_buff */
-                               odev->skb_rx_buf = dev_alloc_skb(frame_len);
+                               odev->skb_rx_buf = netdev_alloc_skb(odev->net,
+                                                                   frame_len);
                                if (!odev->skb_rx_buf) {
                                        /* We got no receive buffer. */
                                        D1("could not allocate memory");
                                        odev->rx_parse_state = WAIT_SYNC;
                                        return;
                                }
-                               /* Here's where it came from */
-                               odev->skb_rx_buf->dev = odev->net;
 
                                /* Copy what we got so far. make room for iphdr
                                 * after tail. */