]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Pei/FwVol/FwVol.c
MdeModulePkg: PEI Core: clean up "AprioriFile" handling in FindFileEx()
authorLaszlo Ersek <lersek@redhat.com>
Sat, 7 Sep 2019 13:13:39 +0000 (15:13 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 9 Oct 2019 07:40:10 +0000 (09:40 +0200)
commit9ee135501b7138126e537adc58352c4126c33fcb
treea9565e117dd9ae6fd8a74d0ad7209f2c6228e073
parentf9319840152899926dd11ccf7b9ed04009db929e
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>
MdeModulePkg/Core/Pei/FwVol/FwVol.c
MdeModulePkg/Core/Pei/FwVol/FwVol.h