Skip to content

Commit 46765aa

Browse files
Alex Shimpe
authored andcommitted
KVM: PPC: Book3S HV: remove unused varible
During build testing, we found a error: arch/powerpc/kvm/book3s_hv.c:4052:17: error: variable 'loops' set but not used unsigned long loops = 0; 1 error generated. Fix it by removing the unused variable. Fixes: b4deba5 ("KVM: PPC: Book3S HV: Implement dynamic micro-threading on POWER8") Signed-off-by: Alex Shi <alexs@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240816093313.327268-1-alexs@kernel.org
1 parent 9739ff4 commit 46765aa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/powerpc/kvm/book3s_hv.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,7 +4057,6 @@ static noinline void kvmppc_run_core(struct kvmppc_vcore *vc)
40574057
/* Return to whole-core mode if we split the core earlier */
40584058
if (cmd_bit) {
40594059
unsigned long hid0 = mfspr(SPRN_HID0);
4060-
unsigned long loops = 0;
40614060

40624061
hid0 &= ~HID0_POWER8_DYNLPARDIS;
40634062
stat_bit = HID0_POWER8_2LPARMODE | HID0_POWER8_4LPARMODE;
@@ -4069,7 +4068,6 @@ static noinline void kvmppc_run_core(struct kvmppc_vcore *vc)
40694068
if (!(hid0 & stat_bit))
40704069
break;
40714070
cpu_relax();
4072-
++loops;
40734071
}
40744072
split_info.do_nap = 0;
40754073
}

0 commit comments

Comments
 (0)