Skip to content

Commit

Permalink
KVM: arm/arm64: Remove unused timer variable
Browse files Browse the repository at this point in the history
The 'timer' local variable became unused after commit bee038a
("KVM: arm/arm64: Rework the timer code to use a timer_map").
Remove it to avoid [-Wunused-but-set-variable] warning.

Cc: Christoffer Dall <[email protected]>
Cc: James Morse <[email protected]>
Cc: Suzuki K Pouloze <[email protected]>
Reviewed-by: Julien Thierry <[email protected]>
Signed-off-by: Shaokun Zhang <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
  • Loading branch information
zhangshk authored and Marc Zyngier committed Feb 22, 2019
1 parent c2be79a commit 7f5d9c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions virt/kvm/arm/arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f5d9c1

Please sign in to comment.