From 5b03f1b5145dd7e4b3ac7bcdd05f03597b461989 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Thu, 2 Jun 2016 14:38:03 +0800 Subject: [PATCH] SecurityPkg EsalVariableDxeSal: Use input Global to make code more clear SecurityPkg\VariableAuthenticated\EsalVariableDxeSal\Variable.c AutoUpdateLangVariable() Global->PlatformLangCodes[VirtualMode] = AllocateRuntimeCopyPool (DataSize, Data); ASSERT (mVariableModuleGlobal->PlatformLangCodes[VirtualMode] != NULL); The patch is to use Global instead of mVariableModuleGlobal in the ASSERT (XXX) to make code more clear although mVariableModuleGlobal is equal to Global actually. Cc: Chao Zhang Cc: Amy Chan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Chao Zhang Reviewed-by: Amy Chan Reviewed-by: Giri P Mudusuru --- .../VariableAuthenticated/EsalVariableDxeSal/Variable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/Variable.c b/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/Variable.c index 9b167552bb..dfa85973f4 100644 --- a/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/Variable.c +++ b/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/Variable.c @@ -1,7 +1,7 @@ /** @file The implementation of Extended SAL variable services. -Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2016, 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 @@ -1661,7 +1661,7 @@ AutoUpdateLangVariable( FreePool (Global->PlatformLangCodes[VirtualMode]); } Global->PlatformLangCodes[VirtualMode] = AllocateRuntimeCopyPool (DataSize, Data); - ASSERT (mVariableModuleGlobal->PlatformLangCodes[VirtualMode] != NULL); + ASSERT (Global->PlatformLangCodes[VirtualMode] != NULL); // // PlatformLang holds a single language from PlatformLangCodes, -- 2.39.2