提交 56cfe5d0 编写于 作者: W Wang Chen 提交者: Jeff Garzik

NETFRONT: Use __skb_queue_purge()

Use standard routine for queue purging.
Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 288369cc
......@@ -946,8 +946,7 @@ static int xennet_poll(struct napi_struct *napi, int budget)
work_done++;
}
while ((skb = __skb_dequeue(&errq)))
kfree_skb(skb);
__skb_queue_purge(&errq);
work_done -= handle_incoming_queue(dev, &rxq);
......@@ -1079,8 +1078,7 @@ static void xennet_release_rx_bufs(struct netfront_info *np)
}
}
while ((skb = __skb_dequeue(&free_list)) != NULL)
dev_kfree_skb(skb);
__skb_queue_purge(&free_list);
spin_unlock_bh(&np->rx_lock);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册