netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* at76c50x-usb: remove pointless conditional before kfree_skb()
@ 2009-04-09  8:16 Wei Yongjun
  2009-04-13 22:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2009-04-09  8:16 UTC (permalink / raw)
  To: John W. Linville, David Miller, netdev

Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 drivers/net/wireless/at76c50x-usb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 0c02f1c..c220c97 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -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);
 
-- 
1.5.3.8





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-13 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09  8:16 at76c50x-usb: remove pointless conditional before kfree_skb() Wei Yongjun
2009-04-13 22:47 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).