From: John Crispin Date: Tue, 14 Apr 2015 03:12:34 +0000 (+0200) Subject: remove obseleted validation of key X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df0292c3af36441dce81b30ac4cd847326e27196;p=oweals%2Fubus.git remove obseleted validation of key Signed-off-by: John Crispin --- diff --git a/ubusd_proto.c b/ubusd_proto.c index 991a70a..8954682 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -158,8 +158,7 @@ static void ubusd_send_obj(struct ubus_client *cl, struct ubus_msg_buf *ub, stru blob_buf_init(&b, 0); - if (obj->path.key) - blob_put_string(&b, UBUS_ATTR_OBJPATH, obj->path.key); + blob_put_string(&b, UBUS_ATTR_OBJPATH, obj->path.key); blob_put_int32(&b, UBUS_ATTR_OBJID, obj->id.id); blob_put_int32(&b, UBUS_ATTR_OBJTYPE, obj->type->id.id);