Skip to content

Commit 8e0f353

Browse files
Jason Wangmpe
authored andcommitted
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 <wangborong@cdjrlc.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211220030243.603435-1-wangborong@cdjrlc.com
1 parent faf01ae commit 8e0f353

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/powerpc/kvm/book3s_64_mmu_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static struct kvmppc_sid_map *create_sid_map(struct kvm_vcpu *vcpu, u64 gvsid)
228228
struct kvmppc_sid_map *map;
229229
struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu);
230230
u16 sid_map_mask;
231-
static int backwards_map = 0;
231+
static int backwards_map;
232232

233233
if (kvmppc_get_msr(vcpu) & MSR_PR)
234234
gvsid |= VSID_PR;

0 commit comments

Comments
 (0)