Skip to content

Commit

Permalink
MIPS: KVM: Remove unneeded volatile
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Deng-Cheng Zhu authored and Paolo Bonzini committed Jun 30, 2014
1 parent d98403a commit b045c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/kvm/kvm_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi,
{
unsigned long flags;
unsigned long old_entryhi;
volatile int idx;
int idx;

local_irq_save(flags);

Expand Down Expand Up @@ -426,7 +426,7 @@ EXPORT_SYMBOL(kvm_mips_guest_tlb_lookup);
int kvm_mips_host_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long vaddr)
{
unsigned long old_entryhi, flags;
volatile int idx;
int idx;

local_irq_save(flags);

Expand Down

0 comments on commit b045c40

Please sign in to comment.