Commit 085b5018 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

staging: rtl8192e: remove pointless conditional before kfree_skb()

Remove pointless conditional before kfree_skb().
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b7553423
...@@ -734,7 +734,6 @@ static void rtl8192_prepare_beacon(struct r8192_priv *priv) ...@@ -734,7 +734,6 @@ static void rtl8192_prepare_beacon(struct r8192_priv *priv)
ring = &priv->tx_ring[BEACON_QUEUE]; ring = &priv->tx_ring[BEACON_QUEUE];
pskb = __skb_dequeue(&ring->queue); pskb = __skb_dequeue(&ring->queue);
if (pskb)
kfree_skb(pskb); kfree_skb(pskb);
pnewskb = rtllib_get_beacon(priv->rtllib); pnewskb = rtllib_get_beacon(priv->rtllib);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment