diff options
author | Liu, Zhiguang <Zhiguang.Liu@intel.com> | 2022-05-12 18:54:57 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-05-13 01:47:11 +0000 |
commit | d0efa681b6adab459acf762290397c0d4a26ed2a (patch) | |
tree | a643f867e73b9b891e557602d9846a7a6d2b2713 /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | |
parent | 17702186b56209842e002235c29ffec5ed69745a (diff) | |
download | edk2-d0efa681b6adab459acf762290397c0d4a26ed2a.tar.gz edk2-d0efa681b6adab459acf762290397c0d4a26ed2a.tar.bz2 edk2-d0efa681b6adab459acf762290397c0d4a26ed2a.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions