[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49A51AE4.2070705@cn.fujitsu.com>
Date: Wed, 25 Feb 2009 18:18:12 +0800
From: Wei Yongjun <yjwei@...fujitsu.com>
To: Jeff Garzik <jgarzik@...ox.com>
CC: netdev@...r.kernel.org
Subject: [PATCH] drivers/net/rionet.c: remove some pointless conditionals
before kfree_skb()
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@...fujitsu.com>
---
drivers/net/rionet.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c
index a6fd27a..ec59e29 100644
--- a/drivers/net/rionet.c
+++ b/drivers/net/rionet.c
@@ -362,8 +362,7 @@ static int rionet_close(struct net_device *ndev)
netif_carrier_off(ndev);
for (i = 0; i < RIONET_RX_RING_SIZE; i++)
- if (rnet->rx_skb[i])
- kfree_skb(rnet->rx_skb[i]);
+ kfree_skb(rnet->rx_skb[i]);
list_for_each_entry_safe(peer, tmp, &rionet_peers, node) {
if (rionet_active[peer->rdev->destid]) {
--
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