powerpc/kvm: no need to initialise statics to 0
Subsystems (2)
PATCH 1/1 powerpc/kvm: no need to initialise statics to 0
Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initialization.
Signed-off-by Jason Wang <[email protected]>
--- arch/powerpc/kvm/book3s_64_mmu_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s_64_mmu_host.c +1 -1
@@ -228,7 +228,7 @@ static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid)struct kvmppc_sid_map *map;struct kvmppc_vcpu_book3s *vcpu_book3s =to_book3s (vcpu);u16 sid_map_mask; -static int backwards_map =0 ; +static int backwards_map;if (kvmppc_get_msr (vcpu) &MSR_PR ) gvsid |=VSID_PR ;
Signature · 1 line
2.34.1
Michael Ellerman
AppliedQuoted 5 lines · Jason Wang
Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initialization.
Applied to powerpc/topic/ppc-kvm.
[1/1] powerpc/kvm: no need to initialise statics to 0
https://git.kernel.org/powerpc/c/8e0f353a44ff3d65d933b8c0e4fb15dc89d46617
cheers