diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 973df997ea602640f489e74e5d65600585d111d5..db75045f22f6b258b52e2ef7278e070187c371ff 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c @@ -63,9 +63,7 @@ void kvm_register_irq_ack_notifier(struct kvm *kvm, void kvm_unregister_irq_ack_notifier(struct kvm_irq_ack_notifier *kian) { - if (!kian) - return; - hlist_del(&kian->link); + hlist_del_init(&kian->link); } /* The caller must hold kvm->lock mutex */