From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=mang.guo@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CFC21210FCF5E for ; Wed, 22 Aug 2018 22:35:06 -0700 (PDT) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 22:35:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,277,1531810800"; d="dat'59?scan'59,208,59";a="74991561" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 22 Aug 2018 22:34:48 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:34:47 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:34:47 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.240]) by shsmsx102.ccr.corp.intel.com ([169.254.2.226]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 13:34:45 +0800 From: "Guo, Mang" To: "edk2-devel@lists.01.org" Thread-Topic: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900] Correct code format Thread-Index: AdQ6ov/4Y1hM1o1jT5Gzvtu8rHXZRg== Date: Thu, 23 Aug 2018 05:34:45 +0000 Message-ID: <22D2C85ED001C54AA20BFE3B0E4751D1526D39A2@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <22D2C85ED001C54AA20BFE3B0E4751D1526D39A2@SHSMSX103.ccr.corp.intel.com> x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900] Correct code format X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 05:35:07 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Guo Mang Reviewed-by: David Wei Reviewed-by: David Wei --- .../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/PlatformBootManager= Lib/PlatformBootOption.c b/Platform/BroxtonPlatformPkg/Common/Library/Platf= ormBootManagerLib/PlatformBootOption.c index 0eec6ca..6ccecb2 100644 --- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootOption.c +++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootOption.c @@ -519,12 +519,10 @@ RegisterDefaultBootOption ( // // Shell. // - if (1) { - ShellData =3D NULL; - ShellDataSize =3D 0; - RegisterFvBootOption (&gUefiShellFileGuid, INTERNAL_UEFI_SHELL_NAME, = (UINTN) -1, LOAD_OPTION_ACTIVE, (UINT8 *)ShellData, ShellDataSize); - } - =20 + ShellData =3D NULL; + ShellDataSize =3D 0; + RegisterFvBootOption (&gUefiShellFileGuid, INTERNAL_UEFI_SHELL_NAME, (U= INTN) -1, LOAD_OPTION_ACTIVE, (UINT8 *)ShellData, ShellDataSize); + // // UiApp. // diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPo= stMemPei/BootMode.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/P= latformPostMemPei/BootMode.c index c113097..6926445 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPe= i/BootMode.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPe= i/BootMode.c @@ -1,7 +1,7 @@ /** @file EFI PEIM to provide the platform support functionality. =20 - Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License @@ -423,14 +423,6 @@ SetPlatformBootMode ( // CopyMem (&PlatformSetupId.SetupName, SAFE_SETUP_NAME, StrSize (SAFE_SE= TUP_NAME)); PlatformSetupId.PlatformBootMode =3D PLATFORM_SAFE_MODE; - - } else if (0) { - // - // Manufacturing mode - // - CopyMem (&PlatformSetupId.SetupName, MANUFACTURE_SETUP_NAME, StrSize (= MANUFACTURE_SETUP_NAME)); - PlatformSetupId.PlatformBootMode =3D PLATFORM_MANUFACTURING_MODE; - } else { // // Default to normal mode. diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/D= xeScHdaLib/ScHdaLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Librar= y/Private/DxeScHdaLib/ScHdaLib.c index 028f6ee..d05395e 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHda= Lib/ScHdaLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/Library/Private/DxeScHda= Lib/ScHdaLib.c @@ -1,7 +1,7 @@ /** @file SC HD Audio Library implementation. =20 - Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License @@ -185,7 +185,9 @@ NhltFormatDump ( DEBUG ((DEBUG_INFO, " Format->FormatConfiguration.CapabilitiesSize =3D %= d B\n", Format->FormatConfiguration.CapabilitiesSize)); DEBUG ((DEBUG_INFO, " Format->FormatConfiguration.Capabilities:")); for (i =3D 0; i < ( Format->FormatConfiguration.CapabilitiesSize ) ; i+= +) { - if(i % 16 =3D=3D 0) DEBUG ((DEBUG_INFO, "\n")); + if(i % 16 =3D=3D 0) { + DEBUG ((DEBUG_INFO, "\n")); + } DEBUG ((DEBUG_INFO, "0x%02x, ", Format->FormatConfiguration.Capabiliti= es[i])); } DEBUG ((DEBUG_INFO, "\n")); @@ -260,7 +262,9 @@ NhltOedConfigDump ( DEBUG ((DEBUG_INFO, " OedConfig->CapabilitiesSize =3D %d B\n", OedConfig= ->CapabilitiesSize)); DEBUG ((DEBUG_INFO, " OedConfig->Capabilities:")); for (i =3D 0; i < (OedConfig->CapabilitiesSize) ; i++) { - if(i % 16 =3D=3D 0) DEBUG ((DEBUG_INFO, "\n")); + if(i % 16 =3D=3D 0) { + DEBUG ((DEBUG_INFO, "\n")); + } DEBUG ((DEBUG_INFO, "0x%02x, ", OedConfig->Capabilities[i])); } =20 --=20 2.10.1.windows.1