]> Git Repo - linux.git/commitdiff
KVM: MIPS: Remove a "set but not used" variable
authorHuacai Chen <[email protected]>
Tue, 6 Apr 2021 02:49:11 +0000 (10:49 +0800)
committerPaolo Bonzini <[email protected]>
Mon, 6 Sep 2021 10:52:10 +0000 (06:52 -0400)
This fix a build warning:

   arch/mips/kvm/vz.c: In function '_kvm_vz_restore_htimer':
>> arch/mips/kvm/vz.c:392:10: warning: variable 'freeze_time' set but not used [-Wunused-but-set-variable]
     392 |  ktime_t freeze_time;
         |          ^~~~~~~~~~~

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Message-Id: <20210406024911.2008046[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/mips/kvm/vz.c

index 43cad10b877d412b064169b09923143be5c3e731..4adca5abbc72d5a98ee863a0821746e63aa16889 100644 (file)
@@ -388,7 +388,6 @@ static void _kvm_vz_restore_htimer(struct kvm_vcpu *vcpu,
                                   u32 compare, u32 cause)
 {
        u32 start_count, after_count;
-       ktime_t freeze_time;
        unsigned long flags;
 
        /*
@@ -396,7 +395,7 @@ static void _kvm_vz_restore_htimer(struct kvm_vcpu *vcpu,
         * this with interrupts disabled to avoid latency.
         */
        local_irq_save(flags);
-       freeze_time = kvm_mips_freeze_hrtimer(vcpu, &start_count);
+       kvm_mips_freeze_hrtimer(vcpu, &start_count);
        write_c0_gtoffset(start_count - read_c0_count());
        local_irq_restore(flags);
 
This page took 0.059607 seconds and 4 git commands to generate.