Two small cleanups in kvm-all.c:
- Patch 1 removes a redundant null/fd check in kvm_close() that
can never be true once the early-return guard at function entry
has already passed.
- Patch 2 fixes an off-by-one in kvm_irqchip_release_virq(): after
a swap-remove the newly placed entry at the same index was never
re-examined, so a duplicate GSI could be silently left in the
routing table.
Bin Guo (2):
kvm: remove redundant check in kvm_close
kvm: fix kvm_irqchip_release_virq loop after swap-remove
accel/kvm/kvm-all.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--
2.50.1 (Apple Git-155)