]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: drop unneeded null test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 27 Apr 2015 20:35:34 +0000 (22:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 May 2015 09:29:47 +0000 (11:29 +0200)
commit01d7c60ee4cf4c679c5acbf1fd2b59c831b78b58
treeb2de53c5c59c57b47f8c1424164ed9000df170e1
parentacdf0677de5e3184b8f88d75493946bf528bb941
KVM: x86: drop unneeded null test

If the null test is needed, the call to cancel_delayed_work_sync would have
already crashed.  Normally, the destroy function should only be called
if the init function has succeeded, in which case ioapic is not null.

Problem found using Coccinelle.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/ioapic.c