From 3402aac7d985bf8a9f9d3c639f3fe93609380513 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 19 Aug 2014 13:29:52 +0000 Subject: ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 --- .../HalRuntimeServicesExampleLib/Variable.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c') diff --git a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c index 4d06666887..0c1b76a4bb 100644 --- a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c +++ b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Variable.c @@ -1,11 +1,11 @@ /** @file Variable services implemented from system memory - There is just a single runtime memory buffer that contans all the data. + There is just a single runtime memory buffer that contans all the data. Copyright (c) 2007, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. 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 @@ -50,7 +50,7 @@ AddEntry ( EFI_TPL CurrentTpl; - SizeOfString = StrSize (VariableName); + SizeOfString = StrSize (VariableName); Size = SizeOfString + sizeof (VARIABLE_ARRAY_ENTRY) + DataSize; if ((VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + Size) > mVariableArrayEnd) { // ran out of space @@ -70,7 +70,7 @@ AddEntry ( mVariableArrayNextFree = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + SizeOfString); CopyMem (mVariableArrayNextFree, Data, DataSize); mVariableArrayNextFree = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArrayNextFree) + DataSize); - + if (!EfiAtRuntime ()) { // Exit Critical section gBS->RestoreTPL (CurrentTpl); @@ -78,7 +78,7 @@ AddEntry ( return Entry; } - + VOID DeleteEntry ( IN VARIABLE_ARRAY_ENTRY *Entry @@ -199,22 +199,22 @@ LibGetNextVariableName ( if (Entry == NULL) { return EFI_NOT_FOUND; } - + // If we are at runtime skip variables that do not have the Runitme attribute set. Done = (EfiAtRuntime () && ((Entry->Attribute & EFI_VARIABLE_RUNTIME_ACCESS) == 0)) ? FALSE : TRUE; - } + } StringSize = StrSize ((CHAR16 *)(Entry + 1)); Entry = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)Entry) + (StringSize + sizeof (VARIABLE_ARRAY_ENTRY) + Entry->DataSize)); if (Entry >= mVariableArrayEnd) { return EFI_NOT_FOUND; } - + if (*VariableNameSize < StringSize) { *VariableNameSize = StringSize; return EFI_BUFFER_TOO_SMALL; } - + *VariableNameSize = StringSize; CopyMem (VariableName, (CHAR16 *)(Entry + 1), StringSize); CopyMem (VendorGuid, &Entry->VendorGuid, sizeof (EFI_GUID)); @@ -298,9 +298,9 @@ LibVariableInitialize (VOID) ASSERT (mVariableArray != NULL); mVariableArrayEnd = (VARIABLE_ARRAY_ENTRY *)(((UINT8 *)mVariableArray) + Size); - + mMaximumVariableStorageSize = Size - sizeof (VARIABLE_ARRAY_ENTRY); mRemainingVariableStorageSize = mMaximumVariableStorageSize; mMaximumVariableSize = mMaximumVariableStorageSize; } - + -- cgit v1.2.3