KVM: use list_for_each_entry_safe
authorGeliang Tang <geliangtang@163.com>
Fri, 1 Jan 2016 11:47:12 +0000 (19:47 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Feb 2016 14:40:53 +0000 (15:40 +0100)
commite6e3b5a64e5f15ebd569118a9af16bd4165cbd1a
tree92c794d5d8f148b531b8e40f9cc5cbfa7cfc52a3
parente9ee956e311d3d0a1506995b98e8de0b30773e1a
KVM: use list_for_each_entry_safe

Use list_for_each_entry_safe() instead of list_for_each_safe() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c