Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133792
b: refs/heads/master
c: d289d12
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent f493a68 commit 6e6ef65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 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: 0f6c5c8e79781974c0e660fd8bfc659b101b44fd
refs/heads/master: d289d120b46d9b6c68448b1d1c6d3edb94cdbde6
3 changes: 1 addition & 2 deletions trunk/net/rose/af_rose.c
Original file line number Diff line number Diff line change
Expand Up @@ -1587,8 +1587,7 @@ static int __init rose_proto_init(void)
char name[IFNAMSIZ];

sprintf(name, "rose%d", i);
dev = alloc_netdev(sizeof(struct net_device_stats),
name, rose_setup);
dev = alloc_netdev(0, name, rose_setup);
if (!dev) {
printk(KERN_ERR "ROSE: rose_proto_init - unable to allocate memory\n");
rc = -ENOMEM;
Expand Down
10 changes: 2 additions & 8 deletions trunk/net/rose/rose_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int rose_rebuild_header(struct sk_buff *skb)
{
#ifdef CONFIG_INET
struct net_device *dev = skb->dev;
struct net_device_stats *stats = netdev_priv(dev);
struct net_device_stats *stats = &dev->stats;
unsigned char *bp = (unsigned char *)skb->data;
struct sk_buff *skbn;
unsigned int len;
Expand Down Expand Up @@ -133,7 +133,7 @@ static int rose_close(struct net_device *dev)

static int rose_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats = netdev_priv(dev);
struct net_device_stats *stats = &dev->stats;

if (!netif_running(dev)) {
printk(KERN_ERR "ROSE: rose_xmit - called when iface is down\n");
Expand All @@ -144,11 +144,6 @@ static int rose_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
}

static struct net_device_stats *rose_get_stats(struct net_device *dev)
{
return netdev_priv(dev);
}

static const struct header_ops rose_header_ops = {
.create = rose_header,
.rebuild= rose_rebuild_header,
Expand All @@ -169,5 +164,4 @@ void rose_setup(struct net_device *dev)

/* New-style flags. */
dev->flags = IFF_NOARP;
dev->get_stats = rose_get_stats;
}

0 comments on commit 6e6ef65

Please sign in to comment.