diff options
Diffstat (limited to 'drivers/scsi/cxgb3i/cxgb3i_iscsi.c')
-rw-r--r-- | drivers/scsi/cxgb3i/cxgb3i_iscsi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c index 307f55e329f5..ae4a93090725 100644 --- a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c +++ b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c | |||
@@ -334,13 +334,12 @@ static void cxgb3i_ep_disconnect(struct iscsi_endpoint *ep) | |||
334 | * @cmds_max: max # of commands | 334 | * @cmds_max: max # of commands |
335 | * @qdepth: scsi queue depth | 335 | * @qdepth: scsi queue depth |
336 | * @initial_cmdsn: initial iscsi CMDSN for this session | 336 | * @initial_cmdsn: initial iscsi CMDSN for this session |
337 | * @host_no: pointer to return host no | ||
338 | * | 337 | * |
339 | * Creates a new iSCSI session | 338 | * Creates a new iSCSI session |
340 | */ | 339 | */ |
341 | static struct iscsi_cls_session * | 340 | static struct iscsi_cls_session * |
342 | cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth, | 341 | cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth, |
343 | u32 initial_cmdsn, u32 *host_no) | 342 | u32 initial_cmdsn) |
344 | { | 343 | { |
345 | struct cxgb3i_endpoint *cep; | 344 | struct cxgb3i_endpoint *cep; |
346 | struct cxgb3i_hba *hba; | 345 | struct cxgb3i_hba *hba; |
@@ -359,8 +358,6 @@ cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth, | |||
359 | cxgb3i_api_debug("ep 0x%p, cep 0x%p, hba 0x%p.\n", ep, cep, hba); | 358 | cxgb3i_api_debug("ep 0x%p, cep 0x%p, hba 0x%p.\n", ep, cep, hba); |
360 | BUG_ON(hba != iscsi_host_priv(shost)); | 359 | BUG_ON(hba != iscsi_host_priv(shost)); |
361 | 360 | ||
362 | *host_no = shost->host_no; | ||
363 | |||
364 | cls_session = iscsi_session_setup(&cxgb3i_iscsi_transport, shost, | 361 | cls_session = iscsi_session_setup(&cxgb3i_iscsi_transport, shost, |
365 | cmds_max, | 362 | cmds_max, |
366 | sizeof(struct iscsi_tcp_task) + | 363 | sizeof(struct iscsi_tcp_task) + |