aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2019-02-22 01:34:29 -0500
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-22 04:41:52 -0500
commit7f5d9c1bc0e6c13ba01546e9c6fda083764a4e9c (patch)
tree5047461ccdd7ec23191e1f4c53809a399f86f143
parentc2be79a0bcf34ed975787e03a129936df17ec0dc (diff)
KVM: arm/arm64: Remove unused timer variable
The 'timer' local variable became unused after commit bee038a67487 ("KVM: arm/arm64: Rework the timer code to use a timer_map"). Remove it to avoid [-Wunused-but-set-variable] warning. Cc: Christoffer Dall <christoffer.dall@arm.com> Cc: James Morse <james.morse@arm.com> Cc: Suzuki K Pouloze <suzuki.poulose@arm.com> Reviewed-by: Julien Thierry <julien.thierry@arm.com> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r--virt/kvm/arm/arch_timer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c
index af8f2f1d01cc..3417f2dbc366 100644
--- a/virt/kvm/arm/arch_timer.c
+++ b/virt/kvm/arm/arch_timer.c
@@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt)
236 236
237static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx) 237static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
238{ 238{
239 struct arch_timer_cpu *timer;
240 enum kvm_arch_timers index; 239 enum kvm_arch_timers index;
241 u64 cval, now; 240 u64 cval, now;
242 241
243 if (!timer_ctx) 242 if (!timer_ctx)
244 return false; 243 return false;
245 244
246 timer = vcpu_timer(timer_ctx->vcpu);
247 index = arch_timer_ctx_index(timer_ctx); 245 index = arch_timer_ctx_index(timer_ctx);
248 246
249 if (timer_ctx->loaded) { 247 if (timer_ctx->loaded) {