Skip to contentSkip to conversation

target: iscsi: remove redundant assignment

PATCH New Maurizio Lombardi 1 participant 1 message Nov 23, 2022 SCSI target

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target: iscsi: remove redundant assignment

login_req has been already initialized at the beginning of the cxgbit_rx_login_pdu() and iscsit_get_login_rx() functions.

---
 drivers/target/iscsi/cxgbit/cxgbit_target.c | 1 -
 drivers/target/iscsi/iscsi_target_login.c   | 1 -
 2 files changed, 2 deletions(-)
drivers/target/iscsi/cxgbit/cxgbit_target.c +0 -1
index acfc39683c87..d67a5be25e7c 100644
@@ -1338,7 +1338,6 @@ static int cxgbit_rx_login_pdu(struct cxgbit_sock *csk)
 	 * login request PDU.
 	 */
 	if (login->first_request) {
-		login_req = (struct iscsi_login_req *)login->req;
 		login->leading_connection = (!login_req->tsih) ? 1 : 0;
 		login->current_stage	= ISCSI_LOGIN_CURRENT_STAGE(
 				login_req->flags);
drivers/target/iscsi/iscsi_target_login.c +0 -1
index 27e448c2d066..d9d2c48aad81 100644
@@ -1039,7 +1039,6 @@ int iscsit_get_login_rx(struct iscsit_conn *conn, struct iscsi_login *login)
 	 * login request PDU.
 	 */
 	if (login->first_request) {
-		login_req = (struct iscsi_login_req *)login->req;
 		login->leading_connection = (!login_req->tsih) ? 1 : 0;
 		login->current_stage	= ISCSI_LOGIN_CURRENT_STAGE(login_req->flags);
 		login->version_min	= login_req->min_version;
Signature · 1 line
2.31.1