ARM: KVM: Cleanup exception injection
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 17:58:33 +0000 (17:58 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Dec 2015 10:14:54 +0000 (10:14 +0000)
commite078ef81514222ffc10bf1767c15df16ca0b84db
tree805acb2e91a9d87c6e925341b1988883f522e854
parent3ffa75cd18134a03f86f9d9b8b6e9128e0eda254
ARM: KVM: Cleanup exception injection

David Binderman reported that the exception injection code had a
couple of unused variables lingering around.

Upon examination, it looked like this code could do with an
anticipated spring cleaning, which amounts to deduplicating
the CPSR/SPSR update, and making it look a bit more like
the architecture spec.

The spurious variables are removed in the process.

Reported-by: David Binderman <dcb314@hotmail.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/emulate.c