From 9f911f14bf5febf67d70114b4afb152c6b596ed6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 19 May 2012 16:21:22 +0200 Subject: [PATCH] ubusd: allow registration of anonymous objects with type --- ubusd_obj.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ubusd_obj.c b/ubusd_obj.c index 1991b17..2248a08 100644 --- a/ubusd_obj.c +++ b/ubusd_obj.c @@ -132,9 +132,6 @@ struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr else if (attr[UBUS_ATTR_SIGNATURE]) type = ubus_create_obj_type(attr[UBUS_ATTR_SIGNATURE]); - if (!!type ^ !!attr[UBUS_ATTR_OBJPATH]) - return NULL; - obj = ubusd_create_object_internal(type, 0); if (type) ubus_unref_object_type(type);