lpfc: positive error return into negative
Subsystems (2)
PATCH 17/28 lpfc: positive error return into negative
From: Roel Kluin <[email protected]>
In the comment on top of lpfc_sli_hbq_setup() and of its caller which transmits this error, lpfc_sli_hba_setup(), it is stated that the function should return a negative error code.
Signed-off-by Roel Kluin <[email protected]>
Acked-by James Smart <[email protected]>
Cc James Bottomley <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_sli.c renamed from drivers/scsi/lpfc/lpfc_sli.c~lpfc-positive-error-return-into-negative +1 -1
@@ -3794,7 +3794,7 @@ lpfc_sli_hbq_setup(struct lpfc_hba *phba phba->link_state =LPFC_HBA_ERROR ;mempool_free (pmb, phba->mbox_mem_pool); -return ENXIO ; +return -ENXIO ; } } phba->hbq_count = hbq_count;
_