diff options
author | Deng-Cheng Zhu <dengcheng.zhu@imgtec.com> | 2014-06-26 15:11:37 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-06-30 10:52:03 -0400 |
commit | b045c40620eb51fb10b19a14f9ebc118925bc0f8 (patch) | |
tree | b3b365c385dd50a7ae8a2f91ba3e0203ade63f9c /arch/mips/kvm/kvm_tlb.c | |
parent | d98403a525fe1648c516f33e2bf674d277d69135 (diff) |
MIPS: KVM: Remove unneeded volatile
The keyword volatile for idx in the TLB functions is unnecessary.
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/kvm_tlb.c')
-rw-r--r-- | arch/mips/kvm/kvm_tlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kvm/kvm_tlb.c b/arch/mips/kvm/kvm_tlb.c index 29a5bdb19a51..bbcd82242059 100644 --- a/arch/mips/kvm/kvm_tlb.c +++ b/arch/mips/kvm/kvm_tlb.c | |||
@@ -201,7 +201,7 @@ int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi, | |||
201 | { | 201 | { |
202 | unsigned long flags; | 202 | unsigned long flags; |
203 | unsigned long old_entryhi; | 203 | unsigned long old_entryhi; |
204 | volatile int idx; | 204 | int idx; |
205 | 205 | ||
206 | local_irq_save(flags); | 206 | local_irq_save(flags); |
207 | 207 | ||
@@ -426,7 +426,7 @@ EXPORT_SYMBOL(kvm_mips_guest_tlb_lookup); | |||
426 | int kvm_mips_host_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long vaddr) | 426 | int kvm_mips_host_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long vaddr) |
427 | { | 427 | { |
428 | unsigned long old_entryhi, flags; | 428 | unsigned long old_entryhi, flags; |
429 | volatile int idx; | 429 | int idx; |
430 | 430 | ||
431 | local_irq_save(flags); | 431 | local_irq_save(flags); |
432 | 432 | ||