Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26c7b673 authored by Jenny Derzhavetz's avatar Jenny Derzhavetz Committed by Nicholas Bellinger
Browse files

iser-target: Remove impossible condition from isert_wait_conn



We can never get to isert_wait_conn in INIT state anymore, so
get rid of this condition.

Signed-off-by: default avatarJenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 69c48846
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -3362,14 +3362,6 @@ static void isert_wait_conn(struct iscsi_conn *conn)
	isert_info("Starting conn %p\n", isert_conn);

	mutex_lock(&isert_conn->mutex);
	/*
	 * Only wait for wait_comp_err if the isert_conn made it
	 * into full feature phase..
	 */
	if (isert_conn->state == ISER_CONN_INIT) {
		mutex_unlock(&isert_conn->mutex);
		return;
	}
	isert_conn_terminate(isert_conn);
	mutex_unlock(&isert_conn->mutex);