[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49A52135.30603@cn.fujitsu.com>
Date: Wed, 25 Feb 2009 18:45:09 +0800
From: Wei Yongjun <yjwei@...fujitsu.com>
To: Jeff Garzik <jgarzik@...ox.com>
CC: netdev@...r.kernel.org
Subject: [PATCH] chelsio: remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@...fujitsu.com>
---
drivers/net/chelsio/sge.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c
index 840da83..58f6fc0 100644
--- a/drivers/net/chelsio/sge.c
+++ b/drivers/net/chelsio/sge.c
@@ -1967,8 +1967,7 @@ void t1_sge_stop(struct sge *sge)
tx_sched_stop(sge);
for (i = 0; i < MAX_NPORTS; i++)
- if (sge->espibug_skb[i])
- kfree_skb(sge->espibug_skb[i]);
+ kfree_skb(sge->espibug_skb[i]);
}
/*
--
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