From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=supreeth.venkatesh@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id 44EF02194D3B3 for ; Fri, 4 Jan 2019 09:52:46 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BD887EBD; Fri, 4 Jan 2019 09:52:45 -0800 (PST) Received: from supven01-VirtualBox (unknown [10.119.49.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0426E3F5D4; Fri, 4 Jan 2019 09:52:44 -0800 (PST) Message-ID: <201d8215406a515618b81e42656bdb6907bfe1f0.camel@arm.com> From: Supreeth Venkatesh To: Ard Biesheuvel , edk2-devel@lists.01.org Cc: Achin Gupta , Jiewen Yao , Leif Lindholm , Jagadeesh Ujja , Thomas Panakamattam Abraham , Sami Mujawar Date: Fri, 04 Jan 2019 11:52:39 -0600 In-Reply-To: <20190104110315.18339-5-ard.biesheuvel@linaro.org> References: <20190104110315.18339-1-ard.biesheuvel@linaro.org> <20190104110315.18339-5-ard.biesheuvel@linaro.org> X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Subject: Re: [PATCH 4/8] StandaloneMmPkg/StandaloneMmCoreEntryPoint: remove bogus ASSERT_EFI_ERROR()s X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2019 17:52:46 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2019-01-04 at 12:03 +0100, Ard Biesheuvel wrote: > ASSERT_EFI_ERROR (x) is a shorthand for ASSERT(!EFI_ERROR(x)), and so > it should only be used with EFI_STATUS type expressions. > > So drop two instances that operate on other types, since neither > looks > particularly useful. > > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ard Biesheuvel Reviewed-by: Supreeth Venkatesh > --- > StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalon > eMmCoreEntryPoint.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git > a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo > neMmCoreEntryPoint.c > b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo > neMmCoreEntryPoint.c > index 05ed6c8dd0b5..5cca532456fd 100644 > --- > a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo > neMmCoreEntryPoint.c > +++ > b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo > neMmCoreEntryPoint.c > @@ -295,7 +295,6 @@ _ModuleEntryPoint ( > // > ProcessModuleEntryPointList (HobStart); > > - ASSERT_EFI_ERROR (CpuDriverEntryPoint); > DEBUG ((DEBUG_INFO, "Shared Cpu Driver EP 0x%lx\n", (UINT64) > CpuDriverEntryPoint)); > > finish: > @@ -303,5 +302,4 @@ finish: > InitMmFoundationSvcArgs.Arg0 = > ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH64; > InitMmFoundationSvcArgs.Arg1 = Status; > DelegatedEventLoop (&InitMmFoundationSvcArgs); > - ASSERT_EFI_ERROR (0); > }