From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 08934740038 for ; Wed, 11 Oct 2023 09:08:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=IlsH8BAyGzGIWQUtCGH8mukTu8smp7nl5fnvG8L3t44=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1697015319; v=1; b=hL3GSq/L7ivpsprCRn+Wz+PXfXbeZw8rpkagcKrBE+6DUbR2sDAZEGuvPTBhzIifTtilL+DK /fEGHuc2rSbid963DlClM7ClIfWIwcmzjMv3aL+3Pl/MsKvgDdRWwwOQc/gsbtYdEzKacHYd3s7 ip0Fd86G7RiO02vSFaSlYRhI= X-Received: by 127.0.0.2 with SMTP id jDURYY7687511xkiqQjiRdtb; Wed, 11 Oct 2023 02:08:39 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.12392.1697015318668127420 for ; Wed, 11 Oct 2023 02:08:39 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="448816791" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="448816791" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 02:08:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="703656047" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="703656047" X-Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.55.100]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 02:08:35 -0700 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Yuanhao Xie , Eric Dong , Rahul Kumar , Gerd Hoffmann , Ray Ni Subject: [edk2-devel] [Patch V2] UefiCpuPkg/CpuDxe: Eliminate the unused variable. Date: Wed, 11 Oct 2023 17:08:23 +0800 Message-Id: <20231011090823.1164-1-yuanhao.xie@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yuanhao.xie@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: doAh4VQmxjyEVYXTOVxBFocUx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="hL3GSq/L"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This change does not introduce any functional modifications. Remove the unused mValidMtrrAddressMask and mValidMtrrBitsMask. Signed-off-by: Yuanhao Xie Cc: Eric Dong Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Ray Ni --- UefiCpuPkg/CpuDxe/CpuDxe.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index c5ac624f9e..bf8d0eb5e5 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -15,15 +15,14 @@ // // Global Variables // -BOOLEAN InterruptState = FALSE; -EFI_HANDLE mCpuHandle = NULL; -BOOLEAN mIsFlushingGCD; -BOOLEAN mIsAllocatingPageTable = FALSE; -UINT64 mValidMtrrAddressMask; -UINT64 mValidMtrrBitsMask; -UINT64 mTimerPeriod = 0; -UINT32 mCpuTargetCState = 0; -EFI_CPU_ARCH_PROTOCOL gCpu = { +BOOLEAN InterruptState = FALSE; +EFI_HANDLE mCpuHandle = NULL; +BOOLEAN mIsFlushingGCD; +BOOLEAN mIsAllocatingPageTable = FALSE; +UINT64 mTimerPeriod = 0; +UINT32 mCpuTargetCState = 0; + +EFI_CPU_ARCH_PROTOCOL gCpu = { CpuFlushCpuDataCache, CpuEnableInterrupt, CpuDisableInterrupt, -- 2.36.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109521): https://edk2.groups.io/g/devel/message/109521 Mute This Topic: https://groups.io/mt/101893039/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-