From d7bcd4c1b91e37d5cf7f4b5c9f2b81ce7698e132 Mon Sep 17 00:00:00 2001 From: shenglei Date: Wed, 8 Aug 2018 16:21:09 +0800 Subject: [PATCH] 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 Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei Reviewed-by: Laszlo Ersek --- .../Universal/Network/IScsiDxe/IScsiProto.c | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 9fb848080a..b4a5c2d024 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -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.