projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b0151c
)
x86: kvm: x86: Remove unnecessary initial values of variables
author
Li zeming
<zeming@nfschina.com>
Thu, 17 Aug 2023 00:26:31 +0000
(08:26 +0800)
committer
Sean Christopherson
<seanjc@google.com>
Thu, 17 Aug 2023 18:35:28 +0000
(11:35 -0700)
bitmap and khz is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
Link:
https://lore.kernel.org/r/20230817002631.2885-1-zeming@nfschina.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index d293adc051459cefe2f8d986ece51f90414e0e26..c91de9897e32b0f4e57757dcea2e94a0d99b3ce5 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-6512,7
+6512,7
@@
static void kvm_free_msr_filter(struct kvm_x86_msr_filter *msr_filter)
static int kvm_add_msr_filter(struct kvm_x86_msr_filter *msr_filter,
struct kvm_msr_filter_range *user_range)
{
- unsigned long *bitmap
= NULL
;
+ unsigned long *bitmap;
size_t bitmap_size;
if (!user_range->nmsrs)
@@
-9146,7
+9146,7
@@
static int kvmclock_cpu_down_prep(unsigned int cpu)
static void tsc_khz_changed(void *data)
{
struct cpufreq_freqs *freq = data;
- unsigned long khz
= 0
;
+ unsigned long khz;
WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_CONSTANT_TSC));