From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D591E210E38C2 for ; Fri, 10 Aug 2018 00:34:47 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2018 00:34:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,218,1531810800"; d="scan'208";a="75434204" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 10 Aug 2018 00:34:47 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 10 Aug 2018 00:34:47 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 10 Aug 2018 00:34:47 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.226]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Fri, 10 Aug 2018 15:34:45 +0800 From: "Yao, Jiewen" To: "Zhang, Shenglei" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH] SignedCapsulePkg: Remove redundant things in inf, .h and .c files Thread-Index: AQHUMHDxc6A7naiWskmqmrbI0uON2KS4mElA Date: Fri, 10 Aug 2018 07:34:44 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AD02399@shsmsx102.ccr.corp.intel.com> References: <20180810061047.31768-1-shenglei.zhang@intel.com> In-Reply-To: <20180810061047.31768-1-shenglei.zhang@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGVlZWRkNTYtOTBiNi00YjQ1LWE0NzItMWQ5MzM4ZDM5MWVmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSDlsaVlFSnFKTTVpVTRxcUNNSWM5N0kza2xHSW1YWVUycStYendnZVNyR1BvMVwvOFM0NzNmTUgwM3NoWjZcL0RwIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] SignedCapsulePkg: Remove redundant things in inf, .h and .c files X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 07:34:48 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > shenglei > Sent: Friday, August 10, 2018 2:11 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen > Subject: [edk2] [PATCH] SignedCapsulePkg: Remove redundant things in inf,= .h > and .c files >=20 > Two redundant library classes have been removed. > The redundant function "IsSystemFmp" has been removed. > https://bugzilla.tianocore.org/show_bug.cgi?id=3D1067 >=20 > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: shenglei > --- > .../SystemFirmwareCommonDxe.c | 27 ------------------- > .../SystemFirmwareUpdate/SystemFirmwareDxe.h | 1 - > .../SystemFirmwareReportDxe.inf | 2 -- > 3 files changed, 30 deletions(-) >=20 > diff --git > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCom > monDxe.c > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCom > monDxe.c > index 7f7a9a1982..8e16763597 100644 > --- > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCom > monDxe.c > +++ > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCom > monDxe.c > @@ -343,31 +343,4 @@ InitializePrivateData ( > return EFI_SUCCESS; > } >=20 > -/** > - Return if this FMP is a system FMP or a device FMP, based upon > FmpImageInfo. > - > - @param[in] FmpImageInfo A pointer to > EFI_FIRMWARE_IMAGE_DESCRIPTOR > - > - @retval TRUE It is a system FMP. > - @retval FALSE It is a device FMP. > -**/ > -BOOLEAN > -IsSystemFmp ( > - IN EFI_FIRMWARE_IMAGE_DESCRIPTOR *FmpImageInfo > - ) > -{ > - GUID *Guid; > - UINTN Count; > - UINTN Index; > - > - Guid =3D PcdGetPtr(PcdSystemFmpCapsuleImageTypeIdGuid); > - Count =3D PcdGetSize(PcdSystemFmpCapsuleImageTypeIdGuid) / > sizeof(GUID); >=20 > - for (Index =3D 0; Index < Count; Index++, Guid++) { > - if (CompareGuid(&FmpImageInfo->ImageTypeId, Guid)) { > - return TRUE; > - } > - } > - > - return FALSE; > -} > diff --git > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareDxe.h > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareDxe. > h > index 999b2b2501..cd6601e815 100644 > --- > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareDxe.h > +++ > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareDxe. > h > @@ -36,7 +36,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareRepo > rtDxe.inf > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareRepo > rtDxe.inf > index cc9614ef14..b15736cf0d 100644 > --- > a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareRepo > rtDxe.inf > +++ > b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareRepo > rtDxe.inf > @@ -50,9 +50,7 @@ > HobLib > UefiRuntimeServicesTableLib > UefiDriverEntryPoint > - DxeServicesLib > DxeServicesTableLib > - PrintLib > EdkiiSystemCapsuleLib >=20 > [Pcd] > -- > 2.18.0.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel