Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256609
b: refs/heads/master
c: 2e66f55
h: refs/heads/master
i:
  256607: 9a254c6
v: v3
  • Loading branch information
Krishna Kumar authored and David S. Miller committed Jul 22, 2011
1 parent c957361 commit 37b4858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87c48fa3b4630905f98268dde838ee43626a060c
refs/heads/master: 2e66f55b3afa290337a47e6ea134ac071c5dd9a7
10 changes: 1 addition & 9 deletions trunk/drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,14 +705,6 @@ static void virtnet_netpoll(struct net_device *dev)
}
#endif

static void virtnet_free(struct net_device *dev)
{
struct virtnet_info *vi = netdev_priv(dev);

free_percpu(vi->stats);
free_netdev(dev);
}

static int virtnet_open(struct net_device *dev)
{
struct virtnet_info *vi = netdev_priv(dev);
Expand Down Expand Up @@ -959,7 +951,6 @@ static int virtnet_probe(struct virtio_device *vdev)
/* Set up network device as normal. */
dev->netdev_ops = &virtnet_netdev;
dev->features = NETIF_F_HIGHDMA;
dev->destructor = virtnet_free;

SET_ETHTOOL_OPS(dev, &virtnet_ethtool_ops);
SET_NETDEV_DEV(dev, &vdev->dev);
Expand Down Expand Up @@ -1122,6 +1113,7 @@ static void __devexit virtnet_remove(struct virtio_device *vdev)
while (vi->pages)
__free_pages(get_a_page(vi, GFP_KERNEL), 0);

free_percpu(vi->stats);
free_netdev(vi->dev);
}

Expand Down

0 comments on commit 37b4858

Please sign in to comment.