Skip to content

Commit

Permalink
KVM: ARM: Squash len warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoffer Dall committed Aug 12, 2013
1 parent 979acd5 commit 2184a60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm/kvm/mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2184a60

Please sign in to comment.