Skip to content

Commit

Permalink
rtlwifi: rtl8192c: remove pointless conditional before kfree_skb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and John W. Linville committed Sep 7, 2012
1 parent d6b389e commit 6babc28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6babc28

Please sign in to comment.