From: Wei Yongjun Date: Tue, 28 Aug 2012 13:12:00 +0000 (+0800) Subject: rtlwifi: rtl8192c: remove pointless conditional before kfree_skb() X-Git-Tag: v3.7-rc1~145^2~30^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6babc283c1edd6dec710530a0e168defceb8d704;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git rtlwifi: rtl8192c: remove pointless conditional before kfree_skb() Remove pointless conditional before kfree_skb(). Signed-off-by: Wei Yongjun Acked-by: Larry Finger Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c index 44febfd..b627151 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c +++ b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c @@ -577,8 +577,7 @@ static bool _rtl92c_cmd_send_packet(struct ieee80211_hw *hw, ring = &rtlpci->tx_ring[BEACON_QUEUE]; pskb = __skb_dequeue(&ring->queue); - if (pskb) - kfree_skb(pskb); + kfree_skb(pskb); spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags);