]> xenbits.xensource.com Git - people/royger/xen.git/commit
tools/xenstore: simplify loop handling connection I/O
authorJuergen Gross <jgross@suse.com>
Wed, 15 Jun 2022 08:22:38 +0000 (10:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jun 2022 08:22:38 +0000 (10:22 +0200)
commite8e6e42279a5723239c5c40ba4c7f579a979465d
tree0305c876d3a9cee50efb83ed7be3b9f8930cacaf
parente2d2b9fd7a2b349a1a9a75b482981cfd2d2407a8
tools/xenstore: simplify loop handling connection I/O

The loop handling input and output of connections of xenstored is
open coding list_for_each_entry_safe() in an incredibly complicated
way.

Use list_for_each_entry_safe() instead, making it much more clear how
the code is working.

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