xenbus: prefer list_for_each()
authorJan Beulich <JBeulich@suse.com>
Mon, 24 Oct 2016 15:03:49 +0000 (09:03 -0600)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 24 Oct 2016 15:08:04 +0000 (16:08 +0100)
commite1e5b3ff41983f506c3cbcf123fe7d682f61a8f1
tree8c2ef836dd61dd49e72389e6f39e332141cec5bf
parentcb5f7e7c1ded5ff91b18116669c0f43c82bea3db
xenbus: prefer list_for_each()

This is more efficient than list_for_each_safe() when list modification
is accompanied by breaking out of the loop.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xenbus/xenbus_dev_frontend.c