KVM: arm/arm64: Remove unused timer variable
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Fri, 22 Feb 2019 06:34:29 +0000 (14:34 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Feb 2019 09:41:52 +0000 (09:41 +0000)
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>
virt/kvm/arm/arch_timer.c

index af8f2f1d01ccc006ddfde14cf1b8f0b0630eb5ae..3417f2dbc3667c372d4ed838a9f95f3826555650 100644 (file)
@@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt)
 
 static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
 {
-       struct arch_timer_cpu *timer;
        enum kvm_arch_timers index;
        u64 cval, now;
 
        if (!timer_ctx)
                return false;
 
-       timer = vcpu_timer(timer_ctx->vcpu);
        index = arch_timer_ctx_index(timer_ctx);
 
        if (timer_ctx->loaded) {