public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: "Lou, Yun" <yun.lou@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Dong, Eric" <eric.dong@intel.com>,
	Laszlo Ersek <lersek@redhat.com>,
	"Kumar, Rahul1" <rahul1.kumar@intel.com>
Subject: Re: [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Add more dependency of CpuCacheInfoLib
Date: Mon, 1 Feb 2021 08:43:50 +0000	[thread overview]
Message-ID: <CO1PR11MB49305C0679C64E9FAC064D808CB69@CO1PR11MB4930.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210201053551.5232-1-yun.lou@intel.com>

> -  Status = CpuCacheInfoGetMpServices (&Context.MpServices);
> 
> -  if (EFI_ERROR(Status)) {
> 
> -    return Status;
> 
> -  }
> 
> +  CpuCacheInfoGetMpServices (&Context.MpServices);

Why not replace the if-check with an assertion as below?
+ ASSERT_EFI_ERROR (Status);

  reply	other threads:[~2021-02-01  8:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01  5:35 [PATCH v1 1/1] UefiCpuPkg/CpuCacheInfoLib: Add more dependency of CpuCacheInfoLib Jason Lou
2021-02-01  8:43 ` Ni, Ray [this message]
2021-02-01 12:36   ` [edk2-devel] " Jason Lou
2021-02-01 14:32     ` Ni, Ray
2021-02-01 15:10       ` Jason Lou

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=CO1PR11MB49305C0679C64E9FAC064D808CB69@CO1PR11MB4930.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