MIPS: KVM: Remove dead code in CP0 emulation
authorJames Hogan <james.hogan@imgtec.com>
Fri, 14 Mar 2014 13:06:10 +0000 (13:06 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Mar 2014 16:01:50 +0000 (17:01 +0100)
commit36c95494609cd6d2541c08e806b4d6bc401bc53f
tree59998fbf13a6b52dd58cd90fd053e62139bbfea8
parent26f4f3b57862642296a2e613674e7f00d91c022f
MIPS: KVM: Remove dead code in CP0 emulation

The code to check whether rd > MIPS_CP0_DESAVE is dead code, since
MIPS_CP0_DESAVE = 31 and rd is already masked with 0x1f. Remove it.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sanjay Lal <sanjayl@kymasys.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/kvm_mips_emul.c