staging: rtl8192e: remove pointless conditional before kfree_skb()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 Aug 2012 13:10:35 +0000 (21:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:09:02 +0000 (14:09 -0700)
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>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index 42e5c5c495e0164cccadb0de18b48b4d4e24d022..81134d312ee3ae6036d9060abd3e648a8f85cca3 100644 (file)
@@ -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)