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:
Родитель
b7553423cd
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче