Commit 7f5d9c1b authored by Shaokun Zhang's avatar Shaokun Zhang Committed by Marc Zyngier

KVM: arm/arm64: Remove unused timer variable

The 'timer' local variable became unused after commit bee038a6
("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: default avatarJulien Thierry <julien.thierry@arm.com>
Signed-off-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent c2be79a0
...@@ -236,14 +236,12 @@ static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt) ...@@ -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) static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx)
{ {
struct arch_timer_cpu *timer;
enum kvm_arch_timers index; enum kvm_arch_timers index;
u64 cval, now; u64 cval, now;
if (!timer_ctx) if (!timer_ctx)
return false; return false;
timer = vcpu_timer(timer_ctx->vcpu);
index = arch_timer_ctx_index(timer_ctx); index = arch_timer_ctx_index(timer_ctx);
if (timer_ctx->loaded) { if (timer_ctx->loaded) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment