diff options
Diffstat (limited to 'roms/ipxe/src/net/netdevice.c')
-rw-r--r-- | roms/ipxe/src/net/netdevice.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/roms/ipxe/src/net/netdevice.c b/roms/ipxe/src/net/netdevice.c index 9df21196c..7c40a2ac8 100644 --- a/roms/ipxe/src/net/netdevice.c +++ b/roms/ipxe/src/net/netdevice.c @@ -675,14 +675,6 @@ int register_netdev ( struct net_device *netdev ) { goto err_duplicate; } - /* Reject named network devices that already exist */ - if ( netdev->name[0] && ( duplicate = find_netdev ( netdev->name ) ) ) { - DBGC ( netdev, "NETDEV rejecting duplicate name %s\n", - duplicate->name ); - rc = -EEXIST; - goto err_duplicate; - } - /* Record device index and create device name */ if ( netdev->name[0] == '\0' ) { snprintf ( netdev->name, sizeof ( netdev->name ), "net%d", @@ -733,8 +725,6 @@ int register_netdev ( struct net_device *netdev ) { clear_settings ( netdev_settings ( netdev ) ); unregister_settings ( netdev_settings ( netdev ) ); err_register_settings: - list_del ( &netdev->list ); - netdev_put ( netdev ); err_duplicate: return rc; } |