diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-04-10 13:35:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-04-15 18:08:40 +0200 |
commit | 788109c1ccf70f29d2d15de94aabf100710d0069 (patch) | |
tree | 9751870e9779701a7107aea30bfc64ec6d21d9db /virt | |
parent | KVM: SVM: Fix __svm_vcpu_run declaration. (diff) | |
download | linux-788109c1ccf70f29d2d15de94aabf100710d0069.tar.xz linux-788109c1ccf70f29d2d15de94aabf100710d0069.zip |
KVM: remove redundant assignment to variable r
The variable r is being assigned with a value that is never read
and it is being updated later with a new value. The initialization is
redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Message-Id: <20200410113526.13822-1-colin.king@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 74bdb7bf3295..03571f6acaa8 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -3160,7 +3160,6 @@ out_free1: case KVM_SET_REGS: { struct kvm_regs *kvm_regs; - r = -ENOMEM; kvm_regs = memdup_user(argp, sizeof(*kvm_regs)); if (IS_ERR(kvm_regs)) { r = PTR_ERR(kvm_regs); |