]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: remove redundant assignments in __kvm_set_memory_region
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 4 Sep 2014 19:13:33 +0000 (21:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Sep 2014 10:01:15 +0000 (12:01 +0200)
commitf2a25160887e00434ce1361007009120e1fecbda
tree1eaa0d6d07eceda78a312be14c9459629560890b
parenta13f533b2f1d53a7c0baa7490498caeab7bc8ba5
KVM: remove redundant assignments in __kvm_set_memory_region

__kvm_set_memory_region sets r to EINVAL very early.
Doing it again is not necessary. The same is true later on, where
r is assigned -ENOMEM twice.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c