From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQkvC-0003lc-QO for qemu-devel@nongnu.org; Thu, 20 Mar 2014 17:54:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQkv8-0004nL-1n for qemu-devel@nongnu.org; Thu, 20 Mar 2014 17:54:42 -0400 Sender: Paolo Bonzini Message-ID: <532B638D.2040608@redhat.com> Date: Thu, 20 Mar 2014 22:54:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1395351032-11920-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1395351032-11920-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-i386: Remove unused data from local array List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , qemu-trivial@nongnu.org Cc: Marcelo Tosatti , qemu-devel@nongnu.org, kvm@vger.kernel.org Il 20/03/2014 22:30, Stefan Weil ha scritto: > Signed-off-by: Stefan Weil > --- > > This patch is based on a previous patch for the same file, > see http://patchwork.ozlabs.org/patch/330708/. > > Regards > Stefan W. > > 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); > } > Applied to uq/master, thanks. I'm leaving the other patch to Andreas or Michael Tokarev. Paolo