Re: [edk2-devel] [PATCH v2 1/3] UefiPayloadPkg: Simplify code logic

2022-05-12 Thread Guo Dong
Reviewed-by: Guo Dong -Original Message- From: Liu, Zhiguang Sent: Thursday, May 12, 2022 3:55 AM To: devel@edk2.groups.io Cc: Dong, Guo ; Ni, Ray ; Maurice Ma ; You, Benjamin ; Rhodes, Sean Subject: [PATCH v2 1/3] UefiPayloadPkg: Simplify code logic A little overdesign about Visi

[edk2-devel] [PATCH v2 1/3] UefiPayloadPkg: Simplify code logic

2022-05-12 Thread Zhiguang Liu
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