diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-14 12:19:34 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-14 15:35:50 +0200 |
commit | 40c4f8d27296428c894551c9e30d8016a2551116 (patch) | |
tree | bcd347398d1b6b1b537d363083c16ecfd3c5a72c /arch | |
parent | arm/arm64: Get rid of KERN_TO_HYP (diff) | |
download | linux-40c4f8d27296428c894551c9e30d8016a2551116.tar.xz linux-40c4f8d27296428c894551c9e30d8016a2551116.zip |
arm64: KVM: Clean up a condition
My static checker complains that this condition looks like it should be
== instead of =. This isn't a fast path, so we don't need to be fancy.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/kvm/sys_regs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c index a57d650f552c..b0b225ceca18 100644 --- a/arch/arm64/kvm/sys_regs.c +++ b/arch/arm64/kvm/sys_regs.c @@ -1546,7 +1546,7 @@ static void unhandled_cp_access(struct kvm_vcpu *vcpu, struct sys_reg_params *params) { u8 hsr_ec = kvm_vcpu_trap_get_class(vcpu); - int cp; + int cp = -1; switch(hsr_ec) { case ESR_ELx_EC_CP15_32: @@ -1558,7 +1558,7 @@ static void unhandled_cp_access(struct kvm_vcpu *vcpu, cp = 14; break; default: - WARN_ON((cp = -1)); + WARN_ON(1); } kvm_err("Unsupported guest CP%d access at: %08lx\n", |