diff mbox series

target: iscsi: remove redundant assignment

Message ID 20221123134932.428695-1-mlombard@redhat.com (mailing list archive)
State New, archived
Headers show
Series target: iscsi: remove redundant assignment | expand

Commit Message

Maurizio Lombardi Nov. 23, 2022, 1:49 p.m. UTC
login_req has been already initialized at the beginning of the
cxgbit_rx_login_pdu() and iscsit_get_login_rx() functions.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
---
 drivers/target/iscsi/cxgbit/cxgbit_target.c | 1 -
 drivers/target/iscsi/iscsi_target_login.c   | 1 -
 2 files changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/target/iscsi/cxgbit/cxgbit_target.c b/drivers/target/iscsi/cxgbit/cxgbit_target.c
index acfc39683c87..d67a5be25e7c 100644
--- a/drivers/target/iscsi/cxgbit/cxgbit_target.c
+++ b/drivers/target/iscsi/cxgbit/cxgbit_target.c
@@ -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);
diff --git a/drivers/target/iscsi/iscsi_target_login.c b/drivers/target/iscsi/iscsi_target_login.c
index 27e448c2d066..d9d2c48aad81 100644
--- a/drivers/target/iscsi/iscsi_target_login.c
+++ b/drivers/target/iscsi/iscsi_target_login.c
@@ -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;