diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-11-27 11:00:54 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-11-30 12:47:13 +0100 |
commit | 2f8a43d45d14ad62b105ed99151b453c12df7149 (patch) | |
tree | 7491c01e18936c3d9c3c400fe78cef3ecbf49067 /arch/s390/kvm | |
parent | a6aacc3f87dfd44425fc17ea9875a5c2ad917227 (diff) | |
download | linux-2f8a43d45d14ad62b105ed99151b453c12df7149.tar.gz linux-2f8a43d45d14ad62b105ed99151b453c12df7149.tar.bz2 linux-2f8a43d45d14ad62b105ed99151b453c12df7149.zip |
KVM: s390: remove redudant assigment of error code
rc already contains -ENOMEM, no need to assign it twice.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 77724ce0cb82..6857262eb7ae 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -1618,10 +1618,8 @@ struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, */ vcpu->arch.guest_fpregs.fprs = kzalloc(sizeof(freg_t) * __NUM_FPRS, GFP_KERNEL); - if (!vcpu->arch.guest_fpregs.fprs) { - rc = -ENOMEM; + if (!vcpu->arch.guest_fpregs.fprs) goto out_free_sie_block; - } rc = kvm_vcpu_init(vcpu, kvm, id); if (rc) |