Subject: [PATCH] irda: remove some pointless conditionals before kfree_skb()

From: Wei Yongjun <[email-masked]>
Date: Wed, 25 Feb 2009 18:14:27 +0800

Remove some pointless conditionals before kfree_skb().

Signed-off-by: Wei Yongjun <[email-masked]>
---
 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