MdeModulePkg IScsiDxe: Remove a redundant function

The function IScsiFindTcbByITT that is never called
has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1062

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
shenglei 2018-08-08 16:21:09 +08:00 committed by Star Zeng
parent 3028d73e5a
commit d7bcd4c1b9
1 changed files with 0 additions and 31 deletions

View File

@ -1738,37 +1738,6 @@ IScsiDelTcb (
FreePool (Tcb);
}
/**
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.
**/
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;
}
Tcb = NULL;
}
return Tcb;
}
/**
Create a data segment, pad it and calculate the CRC if needed.