diff options
author | Eugene Cohen <eugene@hp.com> | 2015-11-25 19:50:05 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-11-25 19:50:05 +0000 |
commit | 95ac787f02d5c85d046af5cefa3b49f0f8841733 (patch) | |
tree | 6166a89a63938e98a388f89edbee8755887a938d /ArmPkg | |
parent | bfec5efa56cae21ea8a1bb52cd7701749d43d70a (diff) | |
download | edk2-platforms-95ac787f02d5c85d046af5cefa3b49f0f8841733.tar.xz |
ArmPkg/UncachedMemoryAllocationLib: fix warning about uninitialized local var
RVCT (the proprietary 32-bit ARM compiler) warns about Node potentially being
used uninitialized, so initialize it to NULL explicitly.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <eugene@hp.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18952 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r-- | ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c b/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c index 1dfc7402fb..f6c692f9a4 100644 --- a/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c +++ b/ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.c @@ -97,6 +97,7 @@ AllocatePagesFromList ( //
// Look in our list for the smallest page that could satisfy the new allocation
//
+ Node = NULL;
NewNode = NULL;
for (Link = mPageList.ForwardLink; Link != &mPageList; Link = Link->ForwardLink) {
Node = BASE_CR (Link, FREE_PAGE_NODE, Link);
|