diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-08-28 09:11:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-07 15:03:42 -0400 |
commit | d6b389e9cbe8f645013001902df45f7e7a223a83 (patch) | |
tree | 17a66e11434c22323cf6166ed032e33d7eef2d99 /drivers/net/wireless/rtlwifi/rtl8192de/fw.c | |
parent | 84f6a95a265d3716537be91dc1bc04d229ad6000 (diff) |
rtlwifi: rtl8192de: remove pointless conditional before kfree_skb()
Remove pointless conditional before kfree_skb().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192de/fw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/fw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/fw.c b/drivers/net/wireless/rtlwifi/rtl8192de/fw.c index 895ae6c1f354..a3aede0a72fa 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/fw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/fw.c | |||
@@ -570,8 +570,7 @@ static bool _rtl92d_cmd_send_packet(struct ieee80211_hw *hw, | |||
570 | 570 | ||
571 | ring = &rtlpci->tx_ring[BEACON_QUEUE]; | 571 | ring = &rtlpci->tx_ring[BEACON_QUEUE]; |
572 | pskb = __skb_dequeue(&ring->queue); | 572 | pskb = __skb_dequeue(&ring->queue); |
573 | if (pskb) | 573 | kfree_skb(pskb); |
574 | kfree_skb(pskb); | ||
575 | spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); | 574 | spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); |
576 | pdesc = &ring->desc[idx]; | 575 | pdesc = &ring->desc[idx]; |
577 | /* discard output from call below */ | 576 | /* discard output from call below */ |