From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web08.233.1648654114469967427 for ; Wed, 30 Mar 2022 08:28:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@linux.microsoft.com header.s=default header.b=hSpP5Htb; spf=pass (domain: linux.microsoft.com, ip: 13.77.154.182, mailfrom: mikuback@linux.microsoft.com) Received: from localhost.localdomain (unknown [47.202.59.224]) by linux.microsoft.com (Postfix) with ESMTPSA id 3F8B920DEE50; Wed, 30 Mar 2022 08:28:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3F8B920DEE50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1648654114; bh=+aFXk+BLArT41uJJUpXMhYHMB6xDgQ1nybbn0mpKgAk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hSpP5HtbSFjo+bz5wHWUtO+DYJhvwtm/IIHPEI66l3L6jYMRXaQi2AXYj5a86KKyz xvMf1BCsbtUDWZ8jL6gjluQVMyYXdArhx1sKXDZkxIXtHJ+p3/3Th+blzWViyXKI9L BPSrIHEMcGb2N4ek39FFzZNbelYoFrMVC1eGaLa0= From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong Subject: [edk2-platforms][PATCH v1 2/2] MinPlatformPkg/TestPointCheckLib: Remove unused variable Date: Wed, 30 Mar 2022 11:28:03 -0400 Message-Id: <20220330152803.1919-3-mikuback@linux.microsoft.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220330152803.1919-1-mikuback@linux.microsoft.com> References: <20220330152803.1919-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Kubacki The variable VariableMemoryTypeInformation is set but never used. This change removes the variable. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong Signed-off-by: Michael Kubacki --- Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckMem= oryTypeInformation.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib= /DxeCheckMemoryTypeInformation.c b/Platform/Intel/MinPlatformPkg/Test/Lib= rary/TestPointCheckLib/DxeCheckMemoryTypeInformation.c index c4dd3c7c9519..0d3da7320fdd 100644 --- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeChe= ckMemoryTypeInformation.c +++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeChe= ckMemoryTypeInformation.c @@ -108,7 +108,6 @@ TestPointCheckMemoryTypeInformation ( EFI_HOB_GUID_TYPE *GuidHob; VOID *CurrentMemoryTypeInformation; VOID *PreviousMemoryTypeInformation; - VOID *VariableMemoryTypeInformation; =20 DEBUG ((DEBUG_INFO, "=3D=3D=3D=3D TestPointCheckMemoryTypeInformation = - Enter\n")); CurrentMemoryTypeInformation =3D NULL; @@ -127,13 +126,6 @@ TestPointCheckMemoryTypeInformation ( goto Done; } =20 - GetVariable2 ( - EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME, - &gEfiMemoryTypeInformationGuid, - &VariableMemoryTypeInformation, - NULL - ); - if ((CurrentMemoryTypeInformation !=3D NULL) && (PreviousMemoryTypeInf= ormation !=3D NULL)) { DumpMemoryTypeInfoSummary(CurrentMemoryTypeInformation, PreviousMemo= ryTypeInformation); } --=20 2.28.0.windows.1