aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sir_dev.c3
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)
780 780
781static void sirdev_free_buffers(struct sir_dev *dev) 781static void sirdev_free_buffers(struct sir_dev *dev)
782{ 782{
783 if (dev->rx_buff.skb) 783 kfree_skb(dev->rx_buff.skb);
784 kfree_skb(dev->rx_buff.skb);
785 kfree(dev->tx_buff.head); 784 kfree(dev->tx_buff.head);
786 dev->rx_buff.head = dev->tx_buff.head = NULL; 785 dev->rx_buff.head = dev->tx_buff.head = NULL;
787 dev->rx_buff.skb = NULL; 786 dev->rx_buff.skb = NULL;