summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDavid S. Miller2018-08-08 08:45:01 +0200
committerDavid S. Miller2018-09-10 19:06:53 +0200
commit250bb6f0f8240a6addbb3fe9c9dbd4abd79503c8 (patch)
tree532062dd444d56bbd76053795cb1142d273cc8d0 /drivers/staging
parentbnx2fc_fcoe: Use skb_queue_walk_safe(). (diff)
downloadkernel-qcow2-linux-250bb6f0f8240a6addbb3fe9c9dbd4abd79503c8.tar.gz
kernel-qcow2-linux-250bb6f0f8240a6addbb3fe9c9dbd4abd79503c8.tar.xz
kernel-qcow2-linux-250bb6f0f8240a6addbb3fe9c9dbd4abd79503c8.zip
staging: rtl8192e: Use __skb_peek().
Instead of direct list head pointer accesses. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8192e/rtl8192e/rtl_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index d2605158546b..96f265eee007 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -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++;