From nobody Sun May 19 21:29:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109536+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109536+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1697077371; cv=none; d=zohomail.com; s=zohoarc; b=Wi5D7KDdhLxdsol4TlwOubdNo4sHo6+/jNuJRW5iLYzWApMDUMKiMx1rNYkc8NpVFrGktrEd5mGLq4Fn/bPM0JFrsIUTPHGbqKS5SWEP5fp82wergMtlrZAXvu0SNyVBpGwBl0WqFGZ3AAveNa2OKcwHsAtEOZ8ZxdI99sit7v8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697077371; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=8SjDl+AwoW0tQBt6whSnHNI3O+moCBgTrJAVFdP2ybs=; b=NFNDL31r/2LjFcpnBCn5yeBtRr6PFmIp/3zO8W5xiRG2YFp2UD4MUxlSkztOjiyJQ0W/iuz/tew23trLH8ngd7U2REpMbNuYYTK4e0M0lrHB722mRNFDOYg0BxBftbCVWN1Tuhkcr/kOWjaRLDVhmEsqsbGBQoFgdmQOrUkzV3g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109536+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1697077371076986.7287479193694; Wed, 11 Oct 2023 19:22:51 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=W8cD6Zi9tLBKEkfuGUOVTKypwrWIs3MQwRV8e3qX2Ys=; 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=1697077370; v=1; b=PBl7W9OF65ltmglQrFxmvRXGXsZMIpOs2k3DTm2yvqN+65zslwf9uCHO1wcgbk4TyGLZ0sfe zUNms3l7XxZxstjKfIE/vu0HoGS/OdloOwYrU9VWqhqTuI6dP2mm09oYYOEKzKQ3y9MLXMI5n3i vCKR6X1IdOf3qrWj09XWSYL4= X-Received: by 127.0.0.2 with SMTP id KI5tYY1788612xSVfudcuZX5; Wed, 11 Oct 2023 19:22:50 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.2870.1697077369661319770 for ; Wed, 11 Oct 2023 19:22:50 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="382057237" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="382057237" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 19:22:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="870382457" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="870382457" X-Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.55.100]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 19:22:45 -0700 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Ray Ni , Yuanhao Xie , Eric Dong , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V3] UefiCpuPkg/CpuDxe: Eliminate the unused variable. Date: Thu, 12 Oct 2023 10:22:25 +0800 Message-Id: <20231012022225.316-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: K2EKIIvTYkp0GeTjMkO5yi8Yx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1697077373524100003 Content-Type: text/plain; charset="utf-8" This change does not introduce any functional modifications. Remove the unused mValidMtrrAddressMask and mValidMtrrBitsMask. Reviewed-by: Ray Ni Signed-off-by: Yuanhao Xie Cc: Eric Dong Cc: Rahul Kumar Cc: Gerd Hoffmann Cc: Ray Ni --- UefiCpuPkg/CpuDxe/CpuDxe.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.c b/UefiCpuPkg/CpuDxe/CpuDxe.c index c5ac624f9e..bf03978710 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.c +++ b/UefiCpuPkg/CpuDxe/CpuDxe.c @@ -15,15 +15,13 @@ // // Global Variables // -BOOLEAN InterruptState =3D FALSE; -EFI_HANDLE mCpuHandle =3D NULL; -BOOLEAN mIsFlushingGCD; -BOOLEAN mIsAllocatingPageTable =3D FALSE; -UINT64 mValidMtrrAddressMask; -UINT64 mValidMtrrBitsMask; -UINT64 mTimerPeriod =3D 0; -UINT32 mCpuTargetCState =3D 0; -EFI_CPU_ARCH_PROTOCOL gCpu =3D { +BOOLEAN InterruptState =3D FALSE; +EFI_HANDLE mCpuHandle =3D NULL; +BOOLEAN mIsFlushingGCD; +BOOLEAN mIsAllocatingPageTable =3D FALSE; +UINT64 mTimerPeriod =3D 0; + +EFI_CPU_ARCH_PROTOCOL gCpu =3D { CpuFlushCpuDataCache, CpuEnableInterrupt, CpuDisableInterrupt, --=20 2.36.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109536): https://edk2.groups.io/g/devel/message/109536 Mute This Topic: https://groups.io/mt/101911140/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-