]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/SnpDxe: Use PcdGetBool() instead of FixedPcdGetBool in Snp.c
authorSiyuan, Fu <siyuan.fu@intel.com>
Tue, 29 Oct 2019 01:41:10 +0000 (09:41 +0800)
committerSiyuan Fu <siyuan.fu@intel.com>
Tue, 29 Oct 2019 09:39:10 +0000 (17:39 +0800)
This patch fixes a problem introduced by commit
  61bb6eeb4d93c0a34c1995d87914ab41398f9550.

The PcdSnpCreateExitBootServicesEvent is not guaranteed to be FixedAtBuild,
so use PcdGetBool() to supports both fixed and patchable PCD.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
NetworkPkg/SnpDxe/Snp.c

index 9fb007f7aecac00a89a07d3441b42035b9bd9cd9..1099dbfa6a2807ebcc22fd158c569771720d8b99 100644 (file)
@@ -647,7 +647,7 @@ SimpleNetworkDriverStart (
   PxeShutdown (Snp);\r
   PxeStop (Snp);\r
 \r
-  if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
+  if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
     //\r
     // Create EXIT_BOOT_SERIVES Event\r
     //\r
@@ -780,7 +780,7 @@ SimpleNetworkDriverStop (
     return Status;\r
   }\r
 \r
-  if (FixedPcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
+  if (PcdGetBool (PcdSnpCreateExitBootServicesEvent)) {\r
     //\r
     // Close EXIT_BOOT_SERIVES Event\r
     //\r