From 9e1becaf8a2bd12b5f75ee77b6bb138992bb1a6c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 30 Apr 2006 16:59:45 +0000 Subject: Merge TCP aborted(), timedout() and closed() methods into a single closed() method with a reason code. --- src/proto/iscsi.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/proto') diff --git a/src/proto/iscsi.c b/src/proto/iscsi.c index 1a808b006..f4fc91a76 100644 --- a/src/proto/iscsi.c +++ b/src/proto/iscsi.c @@ -251,17 +251,7 @@ tcp_to_iscsi ( struct tcp_connection *conn ) { return container_of ( conn, struct iscsi_session, tcp ); } -static void iscsi_aborted ( struct tcp_connection *conn ) { - struct iscsi_session *iscsi = tcp_to_iscsi ( conn ); - -} - -static void iscsi_timedout ( struct tcp_connection *conn ) { - struct iscsi_session *iscsi = tcp_to_iscsi ( conn ); - -} - -static void iscsi_closed ( struct tcp_connection *conn ) { +static void iscsi_closed ( struct tcp_connection *conn, int status ) { struct iscsi_session *iscsi = tcp_to_iscsi ( conn ); } @@ -523,8 +513,6 @@ static void iscsi_newdata ( struct tcp_connection *conn, void *data, /** iSCSI TCP operations */ static struct tcp_operations iscsi_tcp_operations = { - .aborted = iscsi_aborted, - .timedout = iscsi_timedout, .closed = iscsi_closed, .connected = iscsi_connected, .acked = iscsi_acked, -- cgit v1.2.3-55-g7522