mirror of https://gitee.com/openkylin/qemu.git
target-i386: Remove unused data from local array
Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1b5498f687
commit
8e03c100a7
|
@ -130,14 +130,13 @@ static const struct kvm_para_features {
|
||||||
{ KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
|
{ KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
|
||||||
{ KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
|
{ KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
|
||||||
{ KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
|
{ KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
|
||||||
{ -1, -1 }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int get_para_features(KVMState *s)
|
static int get_para_features(KVMState *s)
|
||||||
{
|
{
|
||||||
int i, features = 0;
|
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)) {
|
if (kvm_check_extension(s, para_features[i].cap)) {
|
||||||
features |= (1 << para_features[i].feature);
|
features |= (1 << para_features[i].feature);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue