Skip to content

Commit

Permalink
at76c50x-usb: 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 <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Apr 13, 2009
1 parent 728a997 commit 54cb228
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/at76c50x-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 54cb228

Please sign in to comment.