mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 12:44:52 -04:00
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 <mhal@rbox.co> Link: https://lore.kernel.org/r/20230107001256.2365304-6-mhal@rbox.co Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
committed by
Sean Christopherson
parent
1fdefb8bd8
commit
4559e6cf45
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user