diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-02-25 01:14:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 08:07:30 +0100 |
commit | 875b48297b8ab2f402680821da47d23bd6bddc55 (patch) | |
tree | 14ca6221b2464f39c1b1e3fbaf02a4816d113cf9 /drivers/net/irda | |
parent | isdn: remove some pointless conditionals before kfree_skb() (diff) | |
download | linux-875b48297b8ab2f402680821da47d23bd6bddc55.tar.xz linux-875b48297b8ab2f402680821da47d23bd6bddc55.zip |
irda: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/sir_dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c index c23d211758ae..803c0be3fc7e 100644 --- a/drivers/net/irda/sir_dev.c +++ b/drivers/net/irda/sir_dev.c @@ -780,8 +780,7 @@ static int sirdev_alloc_buffers(struct sir_dev *dev) static void sirdev_free_buffers(struct sir_dev *dev) { - if (dev->rx_buff.skb) - kfree_skb(dev->rx_buff.skb); + kfree_skb(dev->rx_buff.skb); kfree(dev->tx_buff.head); dev->rx_buff.head = dev->tx_buff.head = NULL; dev->rx_buff.skb = NULL; |