ARM: KVM: Cleanup exception injection
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 17:58:33 +0000 (17:58 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 9 Nov 2016 14:15:50 +0000 (22:15 +0800)
commitbbe9945cbb95b179bdee5420e4b22804d560eb16
tree9c827c4fd3a821bee7bdd9914927d3c25dcf5e75
parentaa9b1a6affdc4da75d95d40cf83167351b9848b4
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>
(cherry picked from commit e078ef81514222ffc10bf1767c15df16ca0b84db)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm/kvm/emulate.c