[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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexander Nezhinsky <alexandern@xxxxxxxxxxxx>


Signed-off-by: Alexander Nezhinsky <alexandern@xxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux