提交 250bb6f0 编写于 作者: D David S. Miller

staging: rtl8192e: Use __skb_peek().

Instead of direct list head pointer accesses.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1173ab7b
......@@ -1149,7 +1149,7 @@ static enum reset_type _rtl92e_tx_check_stuck(struct net_device *dev)
if (skb_queue_len(&ring->queue) == 0) {
continue;
} else {
skb = (&ring->queue)->next;
skb = __skb_peek(&ring->queue);
tcb_desc = (struct cb_desc *)(skb->cb +
MAX_DEV_ADDR_SIZE);
tcb_desc->nStuckCount++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册