diff options
Diffstat (limited to 'virt/kvm/irq_comm.c')
-rw-r--r-- | virt/kvm/irq_comm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 973df997ea60..db75045f22f6 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, | |||
63 | 63 | ||
64 | void kvm_unregister_irq_ack_notifier(struct kvm_irq_ack_notifier *kian) | 64 | void kvm_unregister_irq_ack_notifier(struct kvm_irq_ack_notifier *kian) |
65 | { | 65 | { |
66 | if (!kian) | 66 | hlist_del_init(&kian->link); |
67 | return; | ||
68 | hlist_del(&kian->link); | ||
69 | } | 67 | } |
70 | 68 | ||
71 | /* The caller must hold kvm->lock mutex */ | 69 | /* The caller must hold kvm->lock mutex */ |