summaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-11-17 13:41:58 -0800
committerJeff Garzik <jeff@garzik.org>2006-12-02 00:16:37 -0500
commit88041b79f864dcd7f95e1d594eba683244dd968a (patch)
treedddb140e2f6e3526ba43630956e5f9e3e2187ea3 /net/core/dev.c
parent5ac366152a44da60c22c08df619012b1e3bc1adb (diff)
downloadop-kernel-dev-88041b79f864dcd7f95e1d594eba683244dd968a.zip
op-kernel-dev-88041b79f864dcd7f95e1d594eba683244dd968a.tar.gz
[PATCH] netdev: don't allow register_netdev with blank name
This bit of old backwards compatibility cruft can be removed in 2.6.20. If there is still an device that calls register_netdev() with a zero or blank name, it will get -EINVAL from register_netdevice(). Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 81c426a..411c242 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3035,15 +3035,6 @@ int register_netdev(struct net_device *dev)
goto out;
}
- /*
- * Back compatibility hook. Kill this one in 2.5
- */
- if (dev->name[0] == 0 || dev->name[0] == ' ') {
- err = dev_alloc_name(dev, "eth%d");
- if (err < 0)
- goto out;
- }
-
err = register_netdevice(dev);
out:
rtnl_unlock();
OpenPOWER on IntegriCloud