diff options
author | Michal Luczaj <[email protected]> | 2023-01-07 01:12:55 +0100 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-02-03 15:30:45 -0800 |
commit | 4559e6cf45b555e7f2d73dd6a09a23afcbac9ec1 (patch) | |
tree | 08a07b70500baa029f43bb7b6abddd74cc8f93c4 | |
parent | 1fdefb8bd862d7c17fc2526ec9fdfb080c15da45 (diff) |
KVM: x86: Remove unnecessary initialization in kvm_vm_ioctl_set_msr_filter()
Do not initialize the value of `r`, as it will be overwritten.
Signed-off-by: Michal Luczaj <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 00e4bf16bbfd..6a28f1347ff5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -6466,7 +6466,7 @@ static int kvm_vm_ioctl_set_msr_filter(struct kvm *kvm, struct kvm_x86_msr_filter *new_filter, *old_filter; bool default_allow; bool empty = true; - int r = 0; + int r; u32 i; if (filter->flags & ~KVM_MSR_FILTER_VALID_MASK) |