mirror of https://github.com/acidanthera/audk.git
NetworkPkg: UefiPxeBcDxe: Remove the redundant code.
The function PxeBcFreeBootFileOption that is never called have been removed. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1064 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Songpeng Li <songpeng.li@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
8343c75024
commit
b701aae6a8
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue