X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=UefiCpuPkg%2FLibrary%2FRegisterCpuFeaturesLib%2FRegisterCpuFeaturesLib.c;h=fa0f0b41e26bdff055db5bd0affd6b56bd3cee3d;hp=c544d9f1368d723353846e170acb6d3d17e25375;hb=0acd869796ded1266e69487dff717cd69d6031f9;hpb=86094561f67467814043a8863601ba5e84d9ebca diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c index c544d9f136..fa0f0b41e2 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeaturesLib.c @@ -2,13 +2,7 @@ CPU Register Table Library functions. Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.
- This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -389,7 +383,8 @@ AdjustEntry ( // if (Before) { PreviousEntry = GetPreviousNode (FeatureList, FindEntry); - } else { + } else { + PreviousEntry = GetNextNode (FeatureList, FindEntry); } @@ -431,7 +426,8 @@ AdjustEntry ( } } } -} +} + /** Checks and adjusts current CPU features per dependency relationship.