From patchwork Wed Dec 16 05:48:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 68294 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI4ixkh005715 for ; Fri, 18 Dec 2009 04:45:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761105AbZLPFsa (ORCPT ); Wed, 16 Dec 2009 00:48:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761551AbZLPFs3 (ORCPT ); Wed, 16 Dec 2009 00:48:29 -0500 Received: from mga14.intel.com ([143.182.124.37]:35194 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761108AbZLPFs1 (ORCPT ); Wed, 16 Dec 2009 00:48:27 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 15 Dec 2009 21:48:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208";a="223389011" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.36.76]) by azsmga001.ch.intel.com with ESMTP; 15 Dec 2009 21:48:24 -0800 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1NKmkK-0004zV-KH; Wed, 16 Dec 2009 13:48:24 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang Subject: [PATCH 1/4] KVM: VMX: Remove redundant variable Date: Wed, 16 Dec 2009 13:48:02 +0800 Message-Id: <1260942485-19156-2-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1260942485-19156-1-git-send-email-sheng@linux.intel.com> References: <1260942485-19156-1-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 9a0a2cf..5c464ed 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2383,14 +2383,12 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx) for (i = 0; i < NR_VMX_MSR; ++i) { u32 index = vmx_msr_index[i]; u32 data_low, data_high; - u64 data; int j = vmx->nmsrs; if (rdmsr_safe(index, &data_low, &data_high) < 0) continue; if (wrmsr_safe(index, data_low, data_high) < 0) continue; - data = data_low | ((u64)data_high << 32); vmx->guest_msrs[j].index = i; vmx->guest_msrs[j].data = 0; vmx->guest_msrs[j].mask = -1ull;