public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: Wenyi Xie <xiewenyi2@huawei.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Wang, Jian J" <jian.j.wang@intel.com>,
	"Lu, Xiaoyu1" <xiaoyu1.lu@intel.com>,
	"Jiang, Guomin" <guomin.jiang@intel.com>
Cc: "songdongkuang@huawei.com" <songdongkuang@huawei.com>
Subject: Re: [PATCH EDK2 v1 1/1] CryptoPkg/BaseCryptLib:Remove redundant init
Date: Tue, 20 Sep 2022 23:03:09 +0000	[thread overview]
Message-ID: <MW4PR11MB5872C60BAF79B300B5F69CD78C4C9@MW4PR11MB5872.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220915092620.3341564-2-xiewenyi2@huawei.com>

Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>


> -----Original Message-----
> From: Wenyi Xie <xiewenyi2@huawei.com>
> Sent: Thursday, September 15, 2022 5:26 PM
> To: devel@edk2.groups.io; Yao, Jiewen <jiewen.yao@intel.com>; Wang, Jian
> J <jian.j.wang@intel.com>; Lu, Xiaoyu1 <xiaoyu1.lu@intel.com>; Jiang,
> Guomin <guomin.jiang@intel.com>
> Cc: songdongkuang@huawei.com; xiewenyi2@huawei.com
> Subject: [PATCH EDK2 v1 1/1] CryptoPkg/BaseCryptLib:Remove redundant
> init
> 
> CertCtx is used to be defined as a struct and ZeroMem is called to
> init this struct. But now CertCtx is defined as a point, so use
> ZeroMem (&CertCtx, sizeof (CertCtx)) is not correct any more.
> 
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
> Cc: Guomin Jiang <guomin.jiang@intel.com>
> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
> ---
>  CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c
> b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c
> index 3336d2f60a6a..f8028181e47f 100644
> --- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c
> +++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c
> @@ -502,8 +502,6 @@ Pkcs7GetCertificatesList (
>    OldBuf       = NULL;
>    Signers      = NULL;
> 
> -  ZeroMem (&CertCtx, sizeof (CertCtx));
> -
>    //
>    // Parameter Checking
>    //
> --
> 2.20.1.windows.1


  parent reply	other threads:[~2022-09-20 23:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15  9:26 [PATCH EDK2 v1 0/1] CryptoPkg/BaseCryptLib:Remove redundant init wenyi,xie
2022-09-15  9:26 ` [PATCH EDK2 v1 1/1] " wenyi,xie
2022-09-15  9:42   ` Xiaoyu Lu
2022-09-20 23:03   ` Yao, Jiewen [this message]
     [not found]   ` <1716B3FB06A49EB8.26483@groups.io>
2022-09-20 23:05     ` [edk2-devel] EDKII CI Failure Yao, Jiewen
2022-09-20 23:36       ` Michael D Kinney
2022-09-21  0:01         ` Sean
2022-09-21  0:09           ` Yao, Jiewen
2022-09-22  0:21             ` Sean
2022-09-23  6:31   ` [PATCH EDK2 v1 1/1] CryptoPkg/BaseCryptLib:Remove redundant init Yao, Jiewen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW4PR11MB5872C60BAF79B300B5F69CD78C4C9@MW4PR11MB5872.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox