KVM: arm64: Remove redundant *exit_code changes in fpsimd_guest_exit()
authorDave Martin <Dave.Martin@arm.com>
Wed, 2 May 2018 12:23:07 +0000 (13:23 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:28:30 +0000 (12:28 +0100)
commitba4f4cb0e661ed4c68057d4dd831f54b99770b09
treecf86783ae3d7a1c56253f7ad6a544a149661aa38
parent21cdd7fd76e3259b06d78c909e9caeb084c04b65
KVM: arm64: Remove redundant *exit_code changes in fpsimd_guest_exit()

In fixup_guest_exit(), there are a couple of cases where after
checking what the exit code was, we assign it explicitly with the
value it already had.

Assuming this is not indicative of a bug, these assignments are not
needed.

This patch removes the redundant assignments, and simplifies some
if-nesting that becomes trivial as a result.

No functional change.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/switch.c