diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-24 04:17:16 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-24 04:17:16 +0000 |
commit | 24dcb5e50a4492ae2c4616d04e99794f6c19cfac (patch) | |
tree | a78daac72c0e435c197dd25b6820e921915c6889 /MdePkg/Library/BaseLib/LinkedList.c | |
parent | 9d5eaca403dce9a45565ec3bf490d75d643c15b5 (diff) | |
download | edk2-platforms-24dcb5e50a4492ae2c4616d04e99794f6c19cfac.tar.xz |
Update BaseLib according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5956 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/LinkedList.c')
-rw-r--r-- | MdePkg/Library/BaseLib/LinkedList.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseLib/LinkedList.c b/MdePkg/Library/BaseLib/LinkedList.c index 86bc495cc9..d20c146c11 100644 --- a/MdePkg/Library/BaseLib/LinkedList.c +++ b/MdePkg/Library/BaseLib/LinkedList.c @@ -25,7 +25,7 @@ If List is NULL, then ASSERT().
If List->ForwardLink is NULL, then ASSERT().
- If List->backLink is NULL, then ASSERT().
+ If List->BackLink is NULL, then ASSERT().
If Node is NULL, then ASSERT();
If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number
of nodes in ListHead, including the ListHead node, is greater than or
@@ -384,7 +384,7 @@ IsNodeAtEnd ( @param FirstEntry A pointer to a node in a linked list.
@param SecondEntry A pointer to another node in the same linked list.
- @return SecondEntry
+ @return SecondEntry after the nodes are swapped
**/
LIST_ENTRY *
@@ -411,7 +411,7 @@ SwapListEntries ( Ptr = RemoveEntryList (FirstEntry);
//
- // If FirstEntry immediately follows SecondEntry, FirstEntry willl be placed
+ // If FirstEntry immediately follows SecondEntry, FirstEntry will be placed
// immediately in front of SecondEntry
//
if (Ptr->BackLink == SecondEntry) {
@@ -452,7 +452,9 @@ SwapListEntries ( @param Entry A pointer to a node in a linked list
- @return Entry
+ @return The node following Entry in the doubly linked list.
+ If Entry is the only node in the linked list, then
+ the head node of the linked list is returned.
**/
LIST_ENTRY *
|