]> git.proxmox.com Git - mirror_edk2.git/commit
UefiPayloadPkg: Simplify code logic
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>
Thu, 12 May 2022 10:54:57 +0000 (18:54 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 13 May 2022 01:47:11 +0000 (01:47 +0000)
commitd0efa681b6adab459acf762290397c0d4a26ed2a
treea643f867e73b9b891e557602d9846a7a6d2b2713
parent17702186b56209842e002235c29ffec5ed69745a
UefiPayloadPkg: Simplify code logic

A little overdesign about VisitAllPciInstances function, since there are
two call back functions. Simplify the code logic by combining the two call
back functions, and unused parameters.
Change the PROTOCOL_INSTANCE_CALLBACK to SIMPLE_PROTOCOL_INSTANCE_CALLBACK
because the former is also defined in OvmfPkg. Rename it to avoid confusion.

Reviewed-by: Guo Dong <guo.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformConsole.c
UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformConsole.h