mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 00:36:44 +07:00
IB/iser: Remove set-but-not-used variables
This patch does not change any functionality. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
aa9d5ffbb7
commit
efdbda81d9
@ -610,12 +610,10 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep,
|
|||||||
uint32_t initial_cmdsn)
|
uint32_t initial_cmdsn)
|
||||||
{
|
{
|
||||||
struct iscsi_cls_session *cls_session;
|
struct iscsi_cls_session *cls_session;
|
||||||
struct iscsi_session *session;
|
|
||||||
struct Scsi_Host *shost;
|
struct Scsi_Host *shost;
|
||||||
struct iser_conn *iser_conn = NULL;
|
struct iser_conn *iser_conn = NULL;
|
||||||
struct ib_conn *ib_conn;
|
struct ib_conn *ib_conn;
|
||||||
u32 max_fr_sectors;
|
u32 max_fr_sectors;
|
||||||
u16 max_cmds;
|
|
||||||
|
|
||||||
shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0);
|
shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0);
|
||||||
if (!shost)
|
if (!shost)
|
||||||
@ -661,7 +659,6 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep,
|
|||||||
mutex_unlock(&iser_conn->state_mutex);
|
mutex_unlock(&iser_conn->state_mutex);
|
||||||
} else {
|
} else {
|
||||||
shost->can_queue = min_t(u16, cmds_max, ISER_DEF_XMIT_CMDS_MAX);
|
shost->can_queue = min_t(u16, cmds_max, ISER_DEF_XMIT_CMDS_MAX);
|
||||||
max_cmds = ISER_DEF_XMIT_CMDS_MAX;
|
|
||||||
if (iscsi_host_add(shost, NULL))
|
if (iscsi_host_add(shost, NULL))
|
||||||
goto free_host;
|
goto free_host;
|
||||||
}
|
}
|
||||||
@ -683,7 +680,6 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep,
|
|||||||
initial_cmdsn, 0);
|
initial_cmdsn, 0);
|
||||||
if (!cls_session)
|
if (!cls_session)
|
||||||
goto remove_host;
|
goto remove_host;
|
||||||
session = cls_session->dd_data;
|
|
||||||
|
|
||||||
return cls_session;
|
return cls_session;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user