staging: rtl8192e: Use __skb_peek().
authorDavid S. Miller <davem@davemloft.net>
Wed, 8 Aug 2018 06:45:01 +0000 (23:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2018 17:06:53 +0000 (10:06 -0700)
Instead of direct list head pointer accesses.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index d2605158546bb54c2985ea1bf1c0dffa185ba63d..96f265eee00722057798811ad537284962da467d 100644 (file)
@@ -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++;