1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 19:18:07 +02:00

ramips: raeth: use netdev_alloc_skb

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30554 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-02-15 18:33:41 +00:00
parent 0564ef75aa
commit c99c1bd913

View File

@ -520,9 +520,10 @@ ramips_alloc_dma(struct raeth_priv *re)
memset(re->rx, 0, sizeof(struct ramips_rx_dma) * NUM_RX_DESC);
for (i = 0; i < NUM_RX_DESC; i++) {
dma_addr_t dma_addr;
struct sk_buff *new_skb = dev_alloc_skb(MAX_RX_LENGTH +
NET_IP_ALIGN);
struct sk_buff *new_skb;
new_skb = netdev_alloc_skb(re->netdev,
MAX_RX_LENGTH + NET_IP_ALIGN);
if (!new_skb)
goto err_cleanup;