diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-03-20 22:30:32 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-13 13:10:36 +0200 |
commit | 8e03c100a7aeb268a7ebfdd98298591a63df0626 (patch) | |
tree | 6de7971c9fba0ea7f42189b3b8e70b571562c85d /target-i386/kvm.c | |
parent | 1b5498f6874ad661bcd9558bc2b0a4e25643a5bf (diff) | |
download | qemu-8e03c100a7aeb268a7ebfdd98298591a63df0626.zip qemu-8e03c100a7aeb268a7ebfdd98298591a63df0626.tar.gz qemu-8e03c100a7aeb268a7ebfdd98298591a63df0626.tar.bz2 |
target-i386: Remove unused data from local array
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r-- | target-i386/kvm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 4389959..d17eea3 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -130,14 +130,13 @@ static const struct kvm_para_features { { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY }, { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP }, { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF }, - { -1, -1 } }; static int get_para_features(KVMState *s) { int i, features = 0; - for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) { + for (i = 0; i < ARRAY_SIZE(para_features); i++) { if (kvm_check_extension(s, para_features[i].cap)) { features |= (1 << para_features[i].feature); } |