diff options
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 7f11f3e48e12..eaaa8813067d 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c | |||
@@ -522,7 +522,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep, | |||
522 | if (beiscsi_ep->ep_cid > (phba->fw_config.iscsi_cid_start + | 522 | if (beiscsi_ep->ep_cid > (phba->fw_config.iscsi_cid_start + |
523 | phba->params.cxns_per_ctrl * 2)) { | 523 | phba->params.cxns_per_ctrl * 2)) { |
524 | SE_DEBUG(DBG_LVL_1, "Failed in allocate iscsi cid\n"); | 524 | SE_DEBUG(DBG_LVL_1, "Failed in allocate iscsi cid\n"); |
525 | beiscsi_put_cid(phba, beiscsi_ep->ep_cid); | ||
526 | goto free_ep; | 525 | goto free_ep; |
527 | } | 526 | } |
528 | 527 | ||
@@ -559,7 +558,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep, | |||
559 | SE_DEBUG(DBG_LVL_1, "mgmt_open_connection Failed" | 558 | SE_DEBUG(DBG_LVL_1, "mgmt_open_connection Failed" |
560 | " status = %d extd_status = %d\n", | 559 | " status = %d extd_status = %d\n", |
561 | status, extd_status); | 560 | status, extd_status); |
562 | beiscsi_put_cid(phba, beiscsi_ep->ep_cid); | ||
563 | free_mcc_tag(&phba->ctrl, tag); | 561 | free_mcc_tag(&phba->ctrl, tag); |
564 | pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, | 562 | pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, |
565 | nonemb_cmd.va, nonemb_cmd.dma); | 563 | nonemb_cmd.va, nonemb_cmd.dma); |
@@ -574,7 +572,6 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep, | |||
574 | beiscsi_ep->cid_vld = 1; | 572 | beiscsi_ep->cid_vld = 1; |
575 | SE_DEBUG(DBG_LVL_8, "mgmt_open_connection Success\n"); | 573 | SE_DEBUG(DBG_LVL_8, "mgmt_open_connection Success\n"); |
576 | } | 574 | } |
577 | beiscsi_put_cid(phba, beiscsi_ep->ep_cid); | ||
578 | pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, | 575 | pci_free_consistent(phba->ctrl.pdev, nonemb_cmd.size, |
579 | nonemb_cmd.va, nonemb_cmd.dma); | 576 | nonemb_cmd.va, nonemb_cmd.dma); |
580 | return 0; | 577 | return 0; |