mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 12:41:55 +00:00
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>
This commit is contained in:
parent
d98403a525
commit
b045c40620
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user