Received: from eggs.gnu.org ([2001:4830:134:3::10]:46686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCH5-0002K6-Ox for qemu-devel@nongnu.org; Tue, 13 May 2014 08:57:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkCGz-00080q-2f for qemu-devel@nongnu.org; Tue, 13 May 2014 08:57:39 -0400 Received: from mail-ee0-x22f.google.com ([2a00:1450:4013:c00::22f]:35666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkCGy-00080U-Sl for qemu-devel@nongnu.org; Tue, 13 May 2014 08:57:33 -0400 Received: by mail-ee0-f47.google.com with SMTP id c13so390102eek.6 for ; Tue, 13 May 2014 05:57:32 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 13 May 2014 14:57:10 +0200 Message-Id: <1399985844-788-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1399985844-788-1-git-send-email-pbonzini@redhat.com> References: <1399985844-788-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 01/15] target-i386: Remove unused data from local array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil , Paolo Bonzini From: Stefan Weil Signed-off-by: Stefan Weil Signed-off-by: Paolo Bonzini --- target-i386/kvm.c | 3 +-- 1 file changed, 1 insertion(+), 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); } -- 1.8.3.1