summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Compatibility
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-22 14:54:26 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-22 14:54:26 +0000
commitb074cb3927d498a88bd1fb9a25bb62ae088cadff (patch)
treec1dddf9411358d501ffd41c50df9312c66604780 /EdkCompatibilityPkg/Compatibility
parent8cf43dd722ffaed64236be230498f058e59247c7 (diff)
downloadedk2-platforms-b074cb3927d498a88bd1fb9a25bb62ae088cadff.tar.xz
Use correct link list traverse functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5713 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility')
-rw-r--r--EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c
index 23c784b0b9..07e157df4e 100644
--- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c
+++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiToUefiHiiThunk/UefiIfrDefault.c
@@ -760,16 +760,14 @@ FreeDefaultList (
LIST_ENTRY *Link;
UEFI_IFR_BUFFER_STORAGE_NODE *Default;
- Link = GetFirstNode (ListHead);
-
- while (!IsNull (ListHead, Link)) {
+ while (!IsListEmpty (ListHead)) {
+ Link = GetFirstNode (ListHead);
+
Default = UEFI_IFR_BUFFER_STORAGE_NODE_FROM_LIST(Link);
RemoveEntryList (Link);
DestroyDefaultNode (Default);
-
- Link = GetNextNode (ListHead, Link);
}
FreePool (ListHead);