[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49A51A03.1010201@cn.fujitsu.com>
Date: Wed, 25 Feb 2009 18:14:27 +0800
From: Wei Yongjun <yjwei@...fujitsu.com>
To: Samuel Ortiz <samuel@...tiz.org>, Jeff Garzik <jgarzik@...ox.com>
CC: netdev@...r.kernel.org
Subject: [PATCH] irda: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@...fujitsu.com>
---
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 c23d211..803c0be 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;
--
1.5.3.8
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists