projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf01ae
)
powerpc/kvm: no need to initialise statics to 0
author
Jason Wang
<wangborong@cdjrlc.com>
Mon, 20 Dec 2021 03:02:43 +0000
(11:02 +0800)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 2 Feb 2022 09:31:25 +0000
(20:31 +1100)
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
arch/powerpc/kvm/book3s_64_mmu_host.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/book3s_64_mmu_host.c
b/arch/powerpc/kvm/book3s_64_mmu_host.c
index c3e31fef0be1c8a373bf88d7f398f52787735754..1ae09992c9ea3a8d6327069390048e39d3183815 100644
(file)
--- a/
arch/powerpc/kvm/book3s_64_mmu_host.c
+++ b/
arch/powerpc/kvm/book3s_64_mmu_host.c
@@
-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;