at76c50x-usb: remove pointless conditional before kfree_skb()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Wed, 8 Apr 2009 22:16:38 +0000 (22:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Apr 2009 22:44:35 +0000 (15:44 -0700)
Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/at76c50x-usb.c

index 0c02f1c2bd94ae5d84f007521a16a9f1d1e60f8f..c220c9758d096bf32394ad3a07d5af93f9af0d30 100644 (file)
@@ -2309,8 +2309,7 @@ static void at76_delete_device(struct at76_priv *priv)
 
        del_timer_sync(&ledtrig_tx_timer);
 
-       if (priv->rx_skb)
-               kfree_skb(priv->rx_skb);
+       kfree_skb(priv->rx_skb);
 
        usb_put_dev(priv->udev);