aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_nego.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_nego.c')
-rw-r--r--drivers/target/iscsi/iscsi_target_nego.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c
index 879a0cb44bc3..7ad912060e21 100644
--- a/drivers/target/iscsi/iscsi_target_nego.c
+++ b/drivers/target/iscsi/iscsi_target_nego.c
@@ -691,21 +691,6 @@ int iscsi_target_locate_portal(
691 login_req = (struct iscsi_login_req *) login->req; 691 login_req = (struct iscsi_login_req *) login->req;
692 payload_length = ntoh24(login_req->dlength); 692 payload_length = ntoh24(login_req->dlength);
693 693
694 login->first_request = 1;
695 login->leading_connection = (!login_req->tsih) ? 1 : 0;
696 login->current_stage = ISCSI_LOGIN_CURRENT_STAGE(login_req->flags);
697 login->version_min = login_req->min_version;
698 login->version_max = login_req->max_version;
699 memcpy(login->isid, login_req->isid, 6);
700 login->cmd_sn = be32_to_cpu(login_req->cmdsn);
701 login->init_task_tag = login_req->itt;
702 login->initial_exp_statsn = be32_to_cpu(login_req->exp_statsn);
703 login->cid = be16_to_cpu(login_req->cid);
704 login->tsih = be16_to_cpu(login_req->tsih);
705
706 if (iscsi_target_get_initial_payload(conn, login) < 0)
707 return -1;
708
709 tmpbuf = kzalloc(payload_length + 1, GFP_KERNEL); 694 tmpbuf = kzalloc(payload_length + 1, GFP_KERNEL);
710 if (!tmpbuf) { 695 if (!tmpbuf) {
711 pr_err("Unable to allocate memory for tmpbuf.\n"); 696 pr_err("Unable to allocate memory for tmpbuf.\n");