Thanks for the comments. Will update the code in next version patch. Thanks, Dun -----Original Message----- From: Ni, Ray <ray...@intel.com> Sent: Friday, June 2, 2023 11:34 AM To: devel@edk2.groups.io; Tan, Dun <dun....@intel.com> Cc: Dong, Eric <eric.d...@intel.com>; Kumar, Rahul R <rahul.r.ku...@intel.com>; Gerd Hoffmann <kra...@redhat.com> Subject: RE: [edk2-devel] [Patch V4 12/15] UefiCpuPkg: Sort mSmmCpuSmramRanges in FindSmramInfo
> + Buffer = AllocateZeroPool (sizeof (EFI_SMRAM_DESCRIPTOR)); ASSERT > + (Buffer != NULL); You can define a local variable "EFI_SMRAM_DESCRIPTOR OneSmramDescriptor" to avoid pool allocation. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105630): https://edk2.groups.io/g/devel/message/105630 Mute This Topic: https://groups.io/mt/98922940/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-