KVM: s390: remove redudant assigment of error code
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 27 Nov 2015 10:00:54 +0000 (11:00 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:13 +0000 (12:47 +0100)
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>
arch/s390/kvm/kvm-s390.c

index 77724ce0cb82af525a8a64709d954c1be6521efa..6857262eb7ae725aa07104bbc7b58e0a04d1cca3 100644 (file)
@@ -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)