Skip to content

Commit

Permalink
drivers/net/rionet.c: remove some pointless conditionals before kfree…
Browse files Browse the repository at this point in the history
…_skb()

Remove some pointless conditionals before kfree_skb().

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 27, 2009
1 parent 1d2f8c9 commit aaff1e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/rionet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit aaff1e1

Please sign in to comment.