]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit236f389a4d2e121cb7893ee83eff1c5f3624db7a
tree8c2ef836dd61dd49e72389e6f39e332141cec5bf
parent9fc14bc14085ae5bcff282d1b36ebfe9c963343c
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