NetworkPkg: IScsiDxe: Remove the redundant code and definition.

The function IScsiFindTcbByITT that is never called have been removed.
The definition gEfiAcpi20TableGuid has 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:
Songpeng Li 2018-08-09 16:01:00 +08:00 committed by Jiaxin Wu
parent fcb1af1b69
commit fafdb489a7
2 changed files with 0 additions and 34 deletions

View File

@ -124,7 +124,6 @@
gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED
gEfiAcpiTableGuid ## SOMETIMES_CONSUMES ## SystemTable gEfiAcpiTableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAdapterInfoNetworkBootGuid ## SOMETIMES_CONSUMES ## UNDEFINED gEfiAdapterInfoNetworkBootGuid ## SOMETIMES_CONSUMES ## UNDEFINED
gEfiAdapterInfoUndiIpv6SupportGuid ## SOMETIMES_CONSUMES ## GUID gEfiAdapterInfoUndiIpv6SupportGuid ## SOMETIMES_CONSUMES ## GUID

View File

@ -2096,39 +2096,6 @@ IScsiDelTcb (
} }
/**
Find the task control block by the initator task tag.
@param[in] TcbList The tcb list.
@param[in] InitiatorTaskTag The initiator task tag.
@return The task control block found.
@retval NULL The task control block cannot be found.
**/
ISCSI_TCB *
IScsiFindTcbByITT (
IN LIST_ENTRY *TcbList,
IN UINT32 InitiatorTaskTag
)
{
ISCSI_TCB *Tcb;
LIST_ENTRY *Entry;
Tcb = NULL;
NET_LIST_FOR_EACH (Entry, TcbList) {
Tcb = NET_LIST_USER_STRUCT (Entry, ISCSI_TCB, Link);
if (Tcb->InitiatorTaskTag == InitiatorTaskTag) {
break;
}
}
return Tcb;
}
/** /**
Create a data segment, pad it, and calculate the CRC if needed. Create a data segment, pad it, and calculate the CRC if needed.