diff options
author | Star Zeng <star.zeng@intel.com> | 2025-01-22 23:23:18 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-26 18:35:08 +0000 |
commit | 7c5ec51175432c761ff62061e6c533524ad318f1 (patch) | |
tree | 86b19366bb91ebd68c7e305cb0db425c03851ed4 /MdeModulePkg | |
parent | d35899b6d2eb3a8a47fee10fd49a40d41ce59015 (diff) | |
download | edk2-7c5ec51175432c761ff62061e6c533524ad318f1.tar.gz |
MdeModulePkg PeiMain: Remove return for PeiCoreBuildHobHandoffInfoTable()
PeiCoreBuildHobHandoffInfoTable() always returns EFI_SUCCESS, and also
its return is not consumed at all, so this patch removes return for
PeiCoreBuildHobHandoffInfoTable().
Signed-off-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Pei/Hob/Hob.c | 8 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/PeiMain.h | 6 |
2 files changed, 4 insertions, 10 deletions
diff --git a/MdeModulePkg/Core/Pei/Hob/Hob.c b/MdeModulePkg/Core/Pei/Hob/Hob.c index c4882a23cd..6d17d7c2f6 100644 --- a/MdeModulePkg/Core/Pei/Hob/Hob.c +++ b/MdeModulePkg/Core/Pei/Hob/Hob.c @@ -1,7 +1,7 @@ /** @file
This module provide Hand-Off Block manipulation.
-Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2025, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -201,10 +201,8 @@ PeiInstallSecHobData ( @param MemoryBegin - Start Memory Address.
@param MemoryLength - Length of Memory.
- @return EFI_SUCCESS Always success to initialize HOB.
-
**/
-EFI_STATUS
+VOID
PeiCoreBuildHobHandoffInfoTable (
IN EFI_BOOT_MODE BootMode,
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
@@ -232,6 +230,4 @@ PeiCoreBuildHobHandoffInfoTable ( Hob->EfiFreeMemoryTop = MemoryBegin + MemoryLength;
Hob->EfiFreeMemoryBottom = (EFI_PHYSICAL_ADDRESS)(UINTN)(HobEnd + 1);
Hob->EfiEndOfHobList = (EFI_PHYSICAL_ADDRESS)(UINTN)HobEnd;
-
- return EFI_SUCCESS;
}
diff --git a/MdeModulePkg/Core/Pei/PeiMain.h b/MdeModulePkg/Core/Pei/PeiMain.h index 3f73da01f4..278e5a1087 100644 --- a/MdeModulePkg/Core/Pei/PeiMain.h +++ b/MdeModulePkg/Core/Pei/PeiMain.h @@ -1,7 +1,7 @@ /** @file
Definition of Pei Core Structures and Services
-Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2025, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -864,10 +864,8 @@ PeiCreateHob ( @param MemoryBegin - Start Memory Address.
@param MemoryLength - Length of Memory.
- @return EFI_SUCCESS Always success to initialize HOB.
-
**/
-EFI_STATUS
+VOID
PeiCoreBuildHobHandoffInfoTable (
IN EFI_BOOT_MODE BootMode,
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
|