KVM: ARM: Squash len warning
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 30 Jul 2013 03:46:04 +0000 (20:46 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 12 Aug 2013 04:03:39 +0000 (21:03 -0700)
The 'len' variable was declared an unsigned and then checked for less
than 0, which results in warnings on some compilers.  Since len is
assigned an int, make it an int.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/mmio.c

index b8e06b7a28331ede0a01ce6aefcb60d7be343f6e..0c25d9487d5382d2a19a1b3399398244f3718866 100644 (file)
@@ -63,7 +63,8 @@ int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run)
 static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
                      struct kvm_exit_mmio *mmio)
 {
-       unsigned long rt, len;
+       unsigned long rt;
+       int len;
        bool is_write, sign_extend;
 
        if (kvm_vcpu_dabt_isextabt(vcpu)) {
This page took 0.026779 seconds and 5 git commands to generate.