]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
tools/xenstore: remove unused events list
authorJuergen Gross <jgross@suse.com>
Tue, 30 May 2023 08:54:10 +0000 (10:54 +0200)
committerJulien Grall <jgrall@amazon.com>
Fri, 9 Jun 2023 18:16:46 +0000 (19:16 +0100)
struct watch contains an unused struct list_head events. Remove it.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
tools/xenstore/xenstored_watch.c

index e8eb35de020139720b43a0723bdd749e9e4ddc5c..4195c59e17da24860b37308b252da32ba55e87d3 100644 (file)
@@ -36,9 +36,6 @@ struct watch
        /* Watches on this connection */
        struct list_head list;
 
-       /* Current outstanding events applying to this watch. */
-       struct list_head events;
-
        /* Offset into path for skipping prefix (used for relative paths). */
        unsigned int prefix_len;
 
@@ -205,8 +202,6 @@ static struct watch *add_watch(struct connection *conn, char *path, char *token,
 
        watch->prefix_len = relative ? strlen(get_implicit_path(conn)) + 1 : 0;
 
-       INIT_LIST_HEAD(&watch->events);
-
        domain_watch_inc(conn);
        list_add_tail(&watch->list, &conn->watches);
        talloc_set_destructor(watch, destroy_watch);