staging: rtl8192e: remove pointless conditional before kfree_skb()
Remove pointless conditional before kfree_skb(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b7553423cd
commit
085b50186d
|
@ -734,8 +734,7 @@ static void rtl8192_prepare_beacon(struct r8192_priv *priv)
|
|||
|
||||
ring = &priv->tx_ring[BEACON_QUEUE];
|
||||
pskb = __skb_dequeue(&ring->queue);
|
||||
if (pskb)
|
||||
kfree_skb(pskb);
|
||||
kfree_skb(pskb);
|
||||
|
||||
pnewskb = rtllib_get_beacon(priv->rtllib);
|
||||
if (!pnewskb)
|
||||
|
|
Loading…
Reference in New Issue