netdev
[Top] [All Lists]

[PATCH] ethertap can use alloc_etherdev

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH] ethertap can use alloc_etherdev
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Tue, 11 Nov 2003 14:45:57 -0800
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
Can use alloc_etherdev, don't need to call ether_setup.
Found by viro.

diff -Nru a/drivers/net/ethertap.c b/drivers/net/ethertap.c
--- a/drivers/net/ethertap.c    Tue Nov 11 09:36:15 2003
+++ b/drivers/net/ethertap.c    Tue Nov 11 09:36:15 2003
@@ -72,8 +72,7 @@
        struct net_device *dev;
        int err = -ENOMEM;
 
-       dev = alloc_netdev(sizeof(struct net_local), "tap%d",
-                          ether_setup);
+       dev = alloc_etherdev(sizeof(struct net_local));
 
        if (!dev)
                goto out;

<Prev in Thread] Current Thread [Next in Thread>