diff options
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 001888b0c842..e6259d7498f3 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -2681,7 +2681,7 @@ static int be_queue_alloc(struct beiscsi_hba *phba, struct be_queue_info *q, | |||
2681 | mem->size = len * entry_size; | 2681 | mem->size = len * entry_size; |
2682 | mem->va = pci_alloc_consistent(phba->pcidev, mem->size, &mem->dma); | 2682 | mem->va = pci_alloc_consistent(phba->pcidev, mem->size, &mem->dma); |
2683 | if (!mem->va) | 2683 | if (!mem->va) |
2684 | return -1; | 2684 | return -ENOMEM; |
2685 | memset(mem->va, 0, mem->size); | 2685 | memset(mem->va, 0, mem->size); |
2686 | return 0; | 2686 | return 0; |
2687 | } | 2687 | } |
@@ -2877,7 +2877,7 @@ mcc_cq_destroy: | |||
2877 | mcc_cq_free: | 2877 | mcc_cq_free: |
2878 | be_queue_free(phba, cq); | 2878 | be_queue_free(phba, cq); |
2879 | err: | 2879 | err: |
2880 | return -1; | 2880 | return -ENOMEM; |
2881 | } | 2881 | } |
2882 | 2882 | ||
2883 | static int find_num_cpus(void) | 2883 | static int find_num_cpus(void) |