Skip to content

Commit

Permalink
NetworkPkg: UefiPxeBcDxe: Remove the redundant code.
Browse files Browse the repository at this point in the history
The function PxeBcFreeBootFileOption that is never called
have been removed.

Cc: Jiaxin Wu <[email protected]>
Cc: Siyuan Fu <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1064
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Songpeng Li <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jiaxin Wu <[email protected]>
  • Loading branch information
Li-Aaron authored and jiaxinwu committed Aug 23, 2018
1 parent 8343c75 commit b701aae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
23 changes: 0 additions & 23 deletions NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,29 +202,6 @@ PxeBcCacheDhcp6Packet (
return EFI_SUCCESS;
}


/**
Free all the nodes in the list for boot file.
@param[in] Head The pointer to the head of list.
**/
VOID
PxeBcFreeBootFileOption (
IN LIST_ENTRY *Head
)
{
LIST_ENTRY *Entry;
LIST_ENTRY *NextEntry;
PXEBC_DHCP6_OPTION_NODE *Node;

NET_LIST_FOR_EACH_SAFE (Entry, NextEntry, Head) {
Node = NET_LIST_USER_STRUCT (Entry, PXEBC_DHCP6_OPTION_NODE, Link);
RemoveEntryList (Entry);
FreePool (Node);
}
}

/**
Retrieve the boot server address using the EFI_DNS6_PROTOCOL.
Expand Down
10 changes: 0 additions & 10 deletions NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ typedef struct {
} PXEBC_DHCP6_PACKET_CACHE;


/**
Free all the nodes in the boot file list.
@param[in] Head The pointer to the head of the list.
**/
VOID
PxeBcFreeBootFileOption (
IN LIST_ENTRY *Head
);


/**
Expand Down

0 comments on commit b701aae

Please sign in to comment.