summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-07-29 18:43:45 +0200
committerSteven Barth <steven@midlink.org>2014-07-29 18:43:45 +0200
commit4bf89afc22b43d5bd155d32d3998348a77179c1a (patch)
tree339a5e52c4b6f089864bdbe181756968e18a85d4 /ubus.c
parente1ec2d2b9e7f7692a4ff88a0361bbcdbe34f0d99 (diff)
add_dynamic: remove redundant code
device_config is unneeded since add_dynamic is used to create aliases checking of setup state is unneeded because of race condition fixes Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/ubus.c b/ubus.c
index bed1fa4..2522cfa 100644
--- a/ubus.c
+++ b/ubus.c
@@ -140,8 +140,6 @@ netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj,
if (!iface)
return UBUS_STATUS_UNKNOWN_ERROR;
- iface->device_config = true;
-
config = blob_memdup(msg);
if (!config)
goto error;
@@ -161,11 +159,6 @@ netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj,
if (!dev || !dev->default_config)
return UBUS_STATUS_UNKNOWN_ERROR;
- device_set_config(dev, dev->type, msg);
-
- if (iface->state != IFS_SETUP && iface->state != IFS_UP)
- vlist_delete(&interfaces, &iface->node);
-
return UBUS_STATUS_OK;
error: