KVM: s390: Cleanup kvm_arch_init error path
authorJanosch Frank <frankja@linux.ibm.com>
Wed, 2 Oct 2019 07:56:27 +0000 (03:56 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 4 Oct 2019 13:37:53 +0000 (15:37 +0200)
commitf76f6371643b563a7168a6ba5713ce93caa36ecc
tree80749ae16db363b217a06f365c2fac80179897f5
parent7775cbaa11153ec5489cfa31de95aa1b5f29310b
KVM: s390: Cleanup kvm_arch_init error path

Both kvm_s390_gib_destroy and debug_unregister test if the needed
pointers are not NULL and hence can be called unconditionally.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/kvm/20191002075627.3582-1-frankja@linux.ibm.com
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c