commit | b4558ea93d66a43f7990d26f145fd4c54a01c9bf | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jesper.juhl@gmail.com> | Fri Oct 28 16:53:13 2005 -0400 |
committer | Jeff Garzik <jgarzik@pobox.com> | Fri Oct 28 16:53:13 2005 -0400 |
tree | 70aa8ba4864f8ee994b7f5278f5045af6a646d34 | |
parent | 7380a78a973a8109c13cb0e47617c456b6f6e1f5 [diff] [blame] |
drivers/net: Remove pointless checks for NULL prior to calling kfree()
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index efc5a88..df22b8b 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c
@@ -490,8 +490,7 @@ { if (dev->rx_buff.skb) kfree_skb(dev->rx_buff.skb); - if (dev->tx_buff.head) - kfree(dev->tx_buff.head); + kfree(dev->tx_buff.head); dev->rx_buff.head = dev->tx_buff.head = NULL; dev->rx_buff.skb = NULL; }