@@ -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);
@@ -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;
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(-)