Skip to content

Commit

Permalink
target-i386: Remove unused data from local array
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
stweil authored and bonzini committed May 13, 2014
1 parent 1b5498f commit 8e03c10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions target-i386/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8e03c10

Please sign in to comment.