Skip to content

Commit

Permalink
staging: rtl8192e: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent b755342 commit 085b501
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/rtl8192e/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 085b501

Please sign in to comment.