diff options
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 00e297d8d742..3f3a4a1652e6 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -541,8 +541,7 @@ static int be_ctrl_init(struct beiscsi_hba *phba, struct pci_dev *pdev) | |||
541 | &mbox_mem_alloc->dma); | 541 | &mbox_mem_alloc->dma); |
542 | if (!mbox_mem_alloc->va) { | 542 | if (!mbox_mem_alloc->va) { |
543 | beiscsi_unmap_pci_function(phba); | 543 | beiscsi_unmap_pci_function(phba); |
544 | status = -ENOMEM; | 544 | return -ENOMEM; |
545 | return status; | ||
546 | } | 545 | } |
547 | 546 | ||
548 | mbox_mem_align->size = sizeof(struct be_mcc_mailbox); | 547 | mbox_mem_align->size = sizeof(struct be_mcc_mailbox); |
@@ -3209,7 +3208,7 @@ static int hwi_init_port(struct beiscsi_hba *phba) | |||
3209 | error: | 3208 | error: |
3210 | shost_printk(KERN_ERR, phba->shost, "hwi_init_port failed"); | 3209 | shost_printk(KERN_ERR, phba->shost, "hwi_init_port failed"); |
3211 | hwi_cleanup(phba); | 3210 | hwi_cleanup(phba); |
3212 | return -ENOMEM; | 3211 | return status; |
3213 | } | 3212 | } |
3214 | 3213 | ||
3215 | static int hwi_init_controller(struct beiscsi_hba *phba) | 3214 | static int hwi_init_controller(struct beiscsi_hba *phba) |
@@ -3284,7 +3283,7 @@ static int beiscsi_init_controller(struct beiscsi_hba *phba) | |||
3284 | 3283 | ||
3285 | free_init: | 3284 | free_init: |
3286 | beiscsi_free_mem(phba); | 3285 | beiscsi_free_mem(phba); |
3287 | return -ENOMEM; | 3286 | return ret; |
3288 | } | 3287 | } |
3289 | 3288 | ||
3290 | static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba) | 3289 | static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba) |