mirror of https://github.com/acidanthera/audk.git
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:
parent
fcb1af1b69
commit
fafdb489a7
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue