From patchwork Thu Mar 20 21:30:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 3868031 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 883B6BF540 for ; Thu, 20 Mar 2014 21:30:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C91520213 for ; Thu, 20 Mar 2014 21:30:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AB0A201FB for ; Thu, 20 Mar 2014 21:30:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759630AbaCTVak (ORCPT ); Thu, 20 Mar 2014 17:30:40 -0400 Received: from qemu.weilnetz.de ([37.221.198.45]:37751 "EHLO v2201305906712890.yourvserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759365AbaCTVaj (ORCPT ); Thu, 20 Mar 2014 17:30:39 -0400 Received: by v2201305906712890.yourvserver.net (Postfix, from userid 1000) id 2C4F817F59C; Thu, 20 Mar 2014 22:30:35 +0100 (CET) From: Stefan Weil To: qemu-trivial@nongnu.org Cc: qemu-devel@nongnu.org, Marcelo Tosatti , Paolo Bonzini , kvm@vger.kernel.org, Stefan Weil Subject: [PATCH] target-i386: Remove unused data from local array Date: Thu, 20 Mar 2014 22:30:32 +0100 Message-Id: <1395351032-11920-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }