projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fdefb8
)
KVM: x86: Remove unnecessary initialization in kvm_vm_ioctl_set_msr_filter()
author
Michal Luczaj
<mhal@rbox.co>
Sat, 7 Jan 2023 00:12:55 +0000
(
01:12
+0100)
committer
Sean Christopherson
<seanjc@google.com>
Fri, 3 Feb 2023 23:30:45 +0000
(15:30 -0800)
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>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 00e4bf16bbfd7f2f5d934e7eaecde57b9e3a3f6d..6a28f1347ff5a9758b331b8e11a5473fe1f16a61 100644
(file)
--- 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)