summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c')
-rw-r--r--OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c b/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c
index 7ce236326f..33cad38979 100644
--- a/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c
+++ b/OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcd.c
@@ -16,19 +16,29 @@ SetPxeBcPcds (
VOID
)
{
- BOOLEAN FwCfgBool;
- RETURN_STATUS PcdStatus;
+ BOOLEAN FwCfgBool;
+ RETURN_STATUS PcdStatus;
- if (!RETURN_ERROR (QemuFwCfgParseBool ("opt/org.tianocore/IPv4PXESupport",
- &FwCfgBool))) {
+ if (!RETURN_ERROR (
+ QemuFwCfgParseBool (
+ "opt/org.tianocore/IPv4PXESupport",
+ &FwCfgBool
+ )
+ ))
+ {
PcdStatus = PcdSet8S (PcdIPv4PXESupport, FwCfgBool);
if (RETURN_ERROR (PcdStatus)) {
return PcdStatus;
}
}
- if (!RETURN_ERROR (QemuFwCfgParseBool ("opt/org.tianocore/IPv6PXESupport",
- &FwCfgBool))) {
+ if (!RETURN_ERROR (
+ QemuFwCfgParseBool (
+ "opt/org.tianocore/IPv6PXESupport",
+ &FwCfgBool
+ )
+ ))
+ {
PcdStatus = PcdSet8S (PcdIPv6PXESupport, FwCfgBool);
if (RETURN_ERROR (PcdStatus)) {
return PcdStatus;