public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch][edk2-platforms/devel-IntelAtomProcessorE3900] Correct code format
@ 2018-08-23  5:34 Guo, Mang
  0 siblings, 0 replies; only message in thread
From: Guo, Mang @ 2018-08-23  5:34 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <mang.guo@intel.com>
Reviewed-by:  David Wei <david.wei@intel.com>
Reviewed-by:  David Wei <david.wei@intel.com>
---
 .../Common/Library/PlatformBootManagerLib/PlatformBootOption.c | 10 ++++------
 .../Common/PlatformSettings/PlatformPostMemPei/BootMode.c      | 10 +---------
 .../SouthCluster/Library/Private/DxeScHdaLib/ScHdaLib.c        | 10 +++++++---
 3 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootOption.c b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootOption.c
index 0eec6ca..6ccecb2 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootOption.c
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootOption.c
@@ -519,12 +519,10 @@ RegisterDefaultBootOption (
   //
   // Shell.
   //
-  if (1) {
-    ShellData = NULL;
-    ShellDataSize = 0;
-    RegisterFvBootOption (&gUefiShellFileGuid, INTERNAL_UEFI_SHELL_NAME,  (UINTN) -1, LOAD_OPTION_ACTIVE, (UINT8 *)ShellData, ShellDataSize);
-  }
-  
+  ShellData = NULL;
+  ShellDataSize = 0;
+  RegisterFvBootOption (&gUefiShellFileGuid, INTERNAL_UEFI_SHELL_NAME,  (UINTN) -1, LOAD_OPTION_ACTIVE, (UINT8 *)ShellData, ShellDataSize);
+
   //
   // UiApp.
   //
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/BootMode.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/BootMode.c
index c113097..6926445 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/BootMode.c
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/BootMode.c
@@ -1,7 +1,7 @@
 /** @file
   EFI PEIM to provide the platform support functionality.
 
-  Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD License
@@ -423,14 +423,6 @@ SetPlatformBootMode (
     //
     CopyMem (&PlatformSetupId.SetupName, SAFE_SETUP_NAME, StrSize (SAFE_SETUP_NAME));
     PlatformSetupId.PlatformBootMode = PLATFORM_SAFE_MODE;
-
-  } else if (0) {
-    //
-    // Manufacturing mode
-    //
-    CopyMem (&PlatformSetupId.SetupName, MANUFACTURE_SETUP_NAME, StrSize (MANUFACTURE_SETUP_NAME));
-    PlatformSetupId.PlatformBootMode = PLATFORM_MANUFACTURING_MODE;
-
   } else {
     //
     // Default to normal mode.
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHdaLib/ScHdaLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHdaLib/ScHdaLib.c
index 028f6ee..d05395e 100644
--- a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHdaLib/ScHdaLib.c
+++ b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHdaLib/ScHdaLib.c
@@ -1,7 +1,7 @@
 /** @file
   SC HD Audio Library implementation.
 
-  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD License
@@ -185,7 +185,9 @@ NhltFormatDump (
   DEBUG ((DEBUG_INFO, " Format->FormatConfiguration.CapabilitiesSize = %d B\n", Format->FormatConfiguration.CapabilitiesSize));
   DEBUG ((DEBUG_INFO, " Format->FormatConfiguration.Capabilities:"));
   for (i = 0; i < (  Format->FormatConfiguration.CapabilitiesSize ) ; i++) {
-    if(i % 16 == 0) DEBUG ((DEBUG_INFO, "\n"));
+    if(i % 16 == 0) {
+      DEBUG ((DEBUG_INFO, "\n"));
+    }
     DEBUG ((DEBUG_INFO, "0x%02x, ", Format->FormatConfiguration.Capabilities[i]));
   }
   DEBUG ((DEBUG_INFO, "\n"));
@@ -260,7 +262,9 @@ NhltOedConfigDump (
   DEBUG ((DEBUG_INFO, " OedConfig->CapabilitiesSize = %d B\n", OedConfig->CapabilitiesSize));
   DEBUG ((DEBUG_INFO, " OedConfig->Capabilities:"));
   for (i = 0; i < (OedConfig->CapabilitiesSize) ; i++) {
-    if(i % 16 == 0) DEBUG ((DEBUG_INFO, "\n"));
+    if(i % 16 == 0) {
+      DEBUG ((DEBUG_INFO, "\n"));
+    }
     DEBUG ((DEBUG_INFO, "0x%02x, ", OedConfig->Capabilities[i]));
   }
 
-- 
2.10.1.windows.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-23  5:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23  5:34 [Patch][edk2-platforms/devel-IntelAtomProcessorE3900] Correct code format Guo, Mang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox