KVM: i8254: refactor kvm_create_pit
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 2 Mar 2016 21:56:46 +0000 (22:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 08:30:04 +0000 (09:30 +0100)
commit10d2482126d02682d5d21aa5ecdf76d5f49c6740
treea0f2e016721d171eaa1ea2090bed29614b86d66f
parent71474e2f0f439b83b7b53ee6e9cf4f44c15b5806
KVM: i8254: refactor kvm_create_pit

Locks are gone, so we don't need to duplicate error paths.
Use goto everywhere.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c