X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=ubus.c;h=454b42d167562010ec53059bd157948d11e0de03;hp=90ee79592cbc048ebd484fea25121f2f53b84291;hb=6a84e770ed9f4ea0ffe9b20625f8f15868f5424b;hpb=245527193e90906451be35c2b8e972b8712ea6ab diff --git a/ubus.c b/ubus.c index 90ee795..454b42d 100644 --- a/ubus.c +++ b/ubus.c @@ -891,18 +891,10 @@ netifd_handle_set_data(struct ubus_context *ctx, struct ubus_object *obj, struct blob_attr *msg) { struct interface *iface; - struct blob_attr *cur; - int rem, ret; iface = container_of(obj, struct interface, ubus); - blob_for_each_attr(cur, msg, rem) { - ret = interface_add_data(iface, cur); - if (ret) - return ret; - } - - return 0; + return interface_parse_data(iface, msg); } static struct ubus_method iface_object_methods[] = {