ubusd: rename goto label from `error` to `out`
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 5 Jul 2017 13:21:22 +0000 (16:21 +0300)
committerFelix Fietkau <nbd@nbd.name>
Mon, 13 Nov 2017 08:55:48 +0000 (09:55 +0100)
Semantic has changed a bit.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
ubusd_proto.c

index 441d08490b39dc54e6a50f715c68dd7041486594..b084b86c79469d1d155593cf9b59698c24f0ac17 100644 (file)
@@ -345,22 +345,22 @@ static int ubusd_handle_response(struct ubus_client *cl, struct ubus_msg_buf *ub
        if (!attr[UBUS_ATTR_OBJID] ||
            (ub->hdr.type == UBUS_MSG_STATUS && !attr[UBUS_ATTR_STATUS]) ||
            (ub->hdr.type == UBUS_MSG_DATA && !attr[UBUS_ATTR_DATA]))
-               goto error;
+               goto out;
 
        obj = ubusd_find_object(blob_get_u32(attr[UBUS_ATTR_OBJID]));
        if (!obj)
-               goto error;
+               goto out;
 
        if (cl != obj->client)
-               goto error;
+               goto out;
 
        cl = ubusd_get_client_by_id(ub->hdr.peer);
        if (!cl)
-               goto error;
+               goto out;
 
        ub->hdr.peer = blob_get_u32(attr[UBUS_ATTR_OBJID]);
        ubus_msg_send(cl, ub);
-error:
+out:
        return -1;
 }