This field is not used anymore so we can remove it. Signed-off-by: Maurizio Lombardi <mlombard@xxxxxxxxxx> --- drivers/target/iscsi/iscsi_target_nego.c | 5 ----- include/target/iscsi/iscsi_target_core.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c index 151e2949bb75..36341ffaffbf 100644 --- a/drivers/target/iscsi/iscsi_target_nego.c +++ b/drivers/target/iscsi/iscsi_target_nego.c @@ -144,11 +144,6 @@ static u32 iscsi_handle_authentication( auth = &iscsit_global->discovery_acl.node_auth; } - if (strstr("CHAP", authtype)) - strcpy(conn->sess->auth_type, "CHAP"); - else - strcpy(conn->sess->auth_type, NONE); - if (strstr("None", authtype)) return 1; else if (strstr("CHAP", authtype)) diff --git a/include/target/iscsi/iscsi_target_core.h b/include/target/iscsi/iscsi_target_core.h index 1eccb2ac7d02..f0495515ca6a 100644 --- a/include/target/iscsi/iscsi_target_core.h +++ b/include/target/iscsi/iscsi_target_core.h @@ -647,7 +647,6 @@ struct iscsi_session { /* LIO specific session ID */ u32 sid; - char auth_type[8]; /* unique within the target */ int session_index; /* Used for session reference counting */ -- Maurizio Lombardi