[PATCH] scsi: lpfc: lpfc_mem: Removed unnecessary 'return'
From: lijian_8010a29
Date: Tue Jun 08 2021 - 02:52:38 EST
From: lijian <lijian@xxxxxxxxxx>
Removed unnecessary 'return'.
Signed-off-by: lijian <lijian@xxxxxxxxxx>
---
drivers/scsi/lpfc/lpfc_mem.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/scsi/lpfc/lpfc_mem.c b/drivers/scsi/lpfc/lpfc_mem.c
index be54fbf5146f..f5b4c4a81eba 100644
--- a/drivers/scsi/lpfc/lpfc_mem.c
+++ b/drivers/scsi/lpfc/lpfc_mem.c
@@ -269,7 +269,6 @@ lpfc_mem_free(struct lpfc_hba *phba)
mempool_destroy(phba->device_data_mem_pool);
}
phba->device_data_mem_pool = NULL;
- return;
}
/**
@@ -338,8 +337,6 @@ lpfc_mem_free_all(struct lpfc_hba *phba)
/* Free the iocb lookup array */
kfree(psli->iocbq_lookup);
psli->iocbq_lookup = NULL;
-
- return;
}
/**
@@ -405,7 +402,6 @@ __lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma)
} else {
dma_pool_free(phba->lpfc_mbuf_pool, virt, dma);
}
- return;
}
/**
@@ -429,7 +425,6 @@ lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma)
spin_lock_irqsave(&phba->hbalock, iflags);
__lpfc_mbuf_free(phba, virt, dma);
spin_unlock_irqrestore(&phba->hbalock, iflags);
- return;
}
/**
@@ -519,7 +514,6 @@ lpfc_els_hbq_free(struct lpfc_hba *phba, struct hbq_dmabuf *hbqbp)
{
dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys);
kfree(hbqbp);
- return;
}
/**
@@ -682,7 +676,6 @@ lpfc_in_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp)
lpfc_mbuf_free(phba, mp->virt, mp->phys);
kfree(mp);
}
- return;
}
/**
--
2.25.1