diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 3923d5133050..d99864662582 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -967,14 +967,6 @@ void dev_load(struct net *net, const char *name) | |||
967 | request_module("%s", name); | 967 | request_module("%s", name); |
968 | } | 968 | } |
969 | 969 | ||
970 | static int default_rebuild_header(struct sk_buff *skb) | ||
971 | { | ||
972 | printk(KERN_DEBUG "%s: default_rebuild_header called -- BUG!\n", | ||
973 | skb->dev ? skb->dev->name : "NULL!!!"); | ||
974 | kfree_skb(skb); | ||
975 | return 1; | ||
976 | } | ||
977 | |||
978 | /** | 970 | /** |
979 | * dev_open - prepare an interface for use. | 971 | * dev_open - prepare an interface for use. |
980 | * @dev: device to open | 972 | * @dev: device to open |
@@ -3561,14 +3553,6 @@ int register_netdevice(struct net_device *dev) | |||
3561 | } | 3553 | } |
3562 | } | 3554 | } |
3563 | 3555 | ||
3564 | /* | ||
3565 | * nil rebuild_header routine, | ||
3566 | * that should be never called and used as just bug trap. | ||
3567 | */ | ||
3568 | |||
3569 | if (!dev->rebuild_header) | ||
3570 | dev->rebuild_header = default_rebuild_header; | ||
3571 | |||
3572 | ret = netdev_register_kobject(dev); | 3556 | ret = netdev_register_kobject(dev); |
3573 | if (ret) | 3557 | if (ret) |
3574 | goto err_uninit; | 3558 | goto err_uninit; |