[stgt] [PATCH 6/8] Fix "set but not used" warning in iser.c: comment out irdsl related lines; irdsl value is not used meanwhile, as we use a shortcut to cover up an initiator glitch

nezhinsky at gmail.com nezhinsky at gmail.com
Wed Apr 25 16:52:19 CEST 2012


From: Alexander Nezhinsky <alexandern at mellanox.com>


Signed-off-by: Alexander Nezhinsky <alexandern at mellanox.com>
---
 usr/iscsi/iser.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/usr/iscsi/iser.c b/usr/iscsi/iser.c
index 33112cd..b60ce74 100644
--- a/usr/iscsi/iser.c
+++ b/usr/iscsi/iser.c
@@ -1044,14 +1044,16 @@ static void iser_free_ff_resources(struct iser_conn *conn)
 int iser_login_complete(struct iscsi_connection *iscsi_conn)
 {
 	struct iser_conn *conn = ISER_CONN(iscsi_conn);
-	unsigned int irdsl, trdsl, outst_pdu, hdrsz;
+	unsigned int trdsl;
+	/* unsigned int irdsl; */
+	unsigned int outst_pdu, hdrsz;
 	int err = -1;
 
 	dprintf("entry\n");
 
 	/* one more send, then done; login resources are left until then */
 	iser_conn_login_phase_set(conn, LOGIN_PHASE_LAST_SEND);
-	irdsl = iscsi_conn->session_param[ISCSI_PARAM_INITIATOR_RDSL].val;
+	/* irdsl = iscsi_conn->session_param[ISCSI_PARAM_INITIATOR_RDSL].val; */
 	trdsl = iscsi_conn->session_param[ISCSI_PARAM_TARGET_RDSL].val;
 
 	/* ToDo: outstanding pdus num */
-- 
1.7.9.6

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list