mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: PEI Core: clean up "AprioriFile" handling in FindFileEx()
Clean up two issues around FindFileEx(): - The "AprioriFile" parameter's type differs between the function declaration and the function definition. The correct type is (EFI_PEI_FILE_HANDLE*). - "FfsFileHeader" has type (EFI_FFS_FILE_HEADER*); for clarity, we should cast it explicitly to EFI_PEI_FILE_HANDLE when assigning it to (*AprioriFile). This is a semantic cleanup, there is no functional change. Cc: Dandan Bi <dandan.bi@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
f931984015
commit
9ee135501b
|
@ -407,7 +407,7 @@ FindFileEx (
|
|||
} else if (AprioriFile != NULL) {
|
||||
if (FfsFileHeader->Type == EFI_FV_FILETYPE_FREEFORM) {
|
||||
if (CompareGuid (&FfsFileHeader->Name, &gPeiAprioriFileNameGuid)) {
|
||||
*AprioriFile = FfsFileHeader;
|
||||
*AprioriFile = (EFI_PEI_FILE_HANDLE)FfsFileHeader;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -299,7 +299,7 @@ FindFileEx (
|
|||
IN CONST EFI_GUID *FileName, OPTIONAL
|
||||
IN EFI_FV_FILETYPE SearchType,
|
||||
IN OUT EFI_PEI_FILE_HANDLE *FileHandle,
|
||||
IN OUT EFI_PEI_FV_HANDLE *AprioriFile OPTIONAL
|
||||
IN OUT EFI_PEI_FILE_HANDLE *AprioriFile OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue