Skip to content

Commit

Permalink
MdeModulePkg PeiMain: Remove return for PeiCoreBuildHobHandoffInfoTab…
Browse files Browse the repository at this point in the history
…le()

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 <[email protected]>
  • Loading branch information
lzeng14 authored and mergify[bot] committed Jan 26, 2025
1 parent d35899b commit 7c5ec51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 2 additions & 6 deletions MdeModulePkg/Core/Pei/Hob/Hob.c
Original file line number Diff line number Diff line change
@@ -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
**/
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}
6 changes: 2 additions & 4 deletions MdeModulePkg/Core/Pei/PeiMain.h
Original file line number Diff line number Diff line change
@@ -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
**/
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7c5ec51

Please sign in to comment.