tools/xenstore: remove unused events list

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>
This commit is contained in:
Juergen Gross authored and Julien Grall committed 2023-06-09 19:16:46 +01:00
1 parent 38f430ceb2
commit 2b58b249cd
1 file changed
-5
-5
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.