Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvm/eventfd: use list_for_each_entry when deassign ioeventfd
Simpify kvm_deassign_ioeventfd_idx to use list_for_each_entry as the loop just ends at the entry that's found and deleted. Note, coalesced_mmio_ops and ioeventfd_ops are the only instances of kvm_io_device_ops that implement a destructor, all other callers of kvm_io_bus_unregister_dev() are unaffected by this change. Suggested-by: Michal Luczaj <[email protected]> Signed-off-by: Wei Wang <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: call out that only select users implement a destructor] Signed-off-by: Sean Christopherson <[email protected]>
- Loading branch information