Commit a49e06d5 authored by Jayamohan Kallickal's avatar Jayamohan Kallickal Committed by James Bottomley

[SCSI] be2iscsi: Fix the function return values.

Signed-off-by: default avatarJohn Soni Jose <sony.john-n@emulex.com>
Signed-off-by: default avatarJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent db7f7709
...@@ -541,8 +541,7 @@ static int be_ctrl_init(struct beiscsi_hba *phba, struct pci_dev *pdev) ...@@ -541,8 +541,7 @@ static int be_ctrl_init(struct beiscsi_hba *phba, struct pci_dev *pdev)
&mbox_mem_alloc->dma); &mbox_mem_alloc->dma);
if (!mbox_mem_alloc->va) { if (!mbox_mem_alloc->va) {
beiscsi_unmap_pci_function(phba); beiscsi_unmap_pci_function(phba);
status = -ENOMEM; return -ENOMEM;
return status;
} }
mbox_mem_align->size = sizeof(struct be_mcc_mailbox); mbox_mem_align->size = sizeof(struct be_mcc_mailbox);
...@@ -3209,7 +3208,7 @@ static int hwi_init_port(struct beiscsi_hba *phba) ...@@ -3209,7 +3208,7 @@ static int hwi_init_port(struct beiscsi_hba *phba)
error: error:
shost_printk(KERN_ERR, phba->shost, "hwi_init_port failed"); shost_printk(KERN_ERR, phba->shost, "hwi_init_port failed");
hwi_cleanup(phba); hwi_cleanup(phba);
return -ENOMEM; return status;
} }
static int hwi_init_controller(struct beiscsi_hba *phba) static int hwi_init_controller(struct beiscsi_hba *phba)
...@@ -3284,7 +3283,7 @@ static int beiscsi_init_controller(struct beiscsi_hba *phba) ...@@ -3284,7 +3283,7 @@ static int beiscsi_init_controller(struct beiscsi_hba *phba)
free_init: free_init:
beiscsi_free_mem(phba); beiscsi_free_mem(phba);
return -ENOMEM; return ret;
} }
static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba) static int beiscsi_init_sgl_handle(struct beiscsi_hba *phba)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment