From nobody Sat Apr 20 07:20:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+56085+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+56085+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1584933774; cv=none; d=zohomail.com; s=zohoarc; b=Ec5GLbfkNmlnHxboIQUBswzy9K0i/OzVLYnOup3qj4e7ptmVjui5LEltfF/mYJQzlehoClCdFWYZBcsC7svA6x+bOwBIbxofR5O1CKBmGVSjZ8oa7PCNMYSAuWNB9w1+MMO3NHlJt6mIG4uebHX0oiO8AQT76BbMCYaPfN36h5U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584933774; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=CtpJmtiDs3upx8KnxFPJ9Q6ir3k7pRrNBeqzLbK6ykg=; b=NPvF5oJ0oWDzdSqfeq2L3sHyFUcZWYkrILl6hGDwNPdAWytf23O2UkMZsjpZ5/N8vjVbBLf4BuYXVKXVEvHjJ6+pwP26rm40cTUu3oMHDHKRfIIys8MqymVhDm5RYcDxrUgxmN3BWafW2OVLk39Ger8NyjsT3G+yocfK1L+IKOU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+56085+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1584933774596352.4963334194084; Sun, 22 Mar 2020 20:22:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id DPNLYY1788612xJ24PZUPcmz; Sun, 22 Mar 2020 20:22:54 -0700 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.10425.1584518906952512377 for ; Wed, 18 Mar 2020 01:08:27 -0700 IronPort-SDR: USGFhL2mcxCKLZZNmqOYYk5rCMvhFuDYFaqRvtYgH+l0oljh55wRTSv6XWBHPAxsOBZ1vmrJ2g bxinnk2ni4Ag== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2020 01:08:26 -0700 IronPort-SDR: NIahXYeVC8HPdCXuY36wtaQSZifRo5B4RcSa9NvXtifX33IDP7QlC6nlO4C4rxEA8z6WNxkpX7 jZF1fPpqGZfQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,566,1574150400"; d="scan'208";a="445784711" X-Received: from guominji-mobl.ccr.corp.intel.com ([10.238.5.173]) by fmsmga006.fm.intel.com with ESMTP; 18 Mar 2020 01:08:25 -0700 From: "Guomin Jiang" To: devel@edk2.groups.io Cc: Guomin Jiang , Ray Ni , Rangasai V Chaganty Subject: [edk2-devel] [edk2-platform][PATCH] IntelSiliconPkg/IntelPciDeviceSecurityDxe: Replace ASSERT_EFI_ERROR Date: Wed, 18 Mar 2020 16:08:24 +0800 Message-Id: <20200318080824.1160-1-guomin.jiang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,guomin.jiang@intel.com X-Gm-Message-State: 0Ey6aTzCR4L2N7fJz9MjuSxgx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1584933774; bh=MR1RPShDMLiw38hwXpOGZcP08e+lBrYuCKHSHzz8Pxo=; h=Cc:Date:From:Reply-To:Subject:To; b=ELz3aU9fbq/P7HfSJNpw+lPUdrodHKPP6VeqFc68ctJnBa/nYxE/vz0+ccLUO8n+gUS Ork8BI4sUUXmv5Aa6eqblTDvkEt+Ig7ohZxOR1ZEfUFQVY5sPIvJCQLyiYW/3J3sIBrwy 0bvyEcpMg2yJVqzb1JZU8t4jMULVG4/w/00= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Guomin Jiang REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2589 According to code logic, it just judge the condition rather than the status, it should use the ASSERT rather than ASSERT_EFI_ERROR. Cc: Ray Ni Cc: Rangasai V Chaganty Signed-off-by: Guomin Jiang Reviewed-by: Jiewen Yao@intel.com Reviewed-by: Ray Ni --- .../IntelPciDeviceSecurityDxe/IntelPciDeviceSecurityDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/PcieSecurity/IntelPciDev= iceSecurityDxe/IntelPciDeviceSecurityDxe.c b/Silicon/Intel/IntelSiliconPkg/= Feature/PcieSecurity/IntelPciDeviceSecurityDxe/IntelPciDeviceSecurityDxe.c index 29b6916f61..aa2bf14fa8 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/PcieSecurity/IntelPciDeviceSecu= rityDxe/IntelPciDeviceSecurityDxe.c +++ b/Silicon/Intel/IntelSiliconPkg/Feature/PcieSecurity/IntelPciDeviceSecu= rityDxe/IntelPciDeviceSecurityDxe.c @@ -69,7 +69,7 @@ RecordPciDeviceInList( ASSERT_EFI_ERROR(Status); =20 NewPciDevice =3D AllocateZeroPool(sizeof(*NewPciDevice)); - ASSERT_EFI_ERROR(NewPciDevice !=3D NULL); + ASSERT(NewPciDevice !=3D NULL); =20 NewPciDevice->Signature =3D PCI_DEVICE_INSTANCE_SIGNATURE; NewPciDevice->PciSegment =3D PciSegment; --=20 2.25.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56085): https://edk2.groups.io/g/devel/message/56085 Mute This Topic: https://groups.io/mt/72484312/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-