@@ -212,7 +212,7 @@ int lpfc_config_port_prep(struct lpfc_hba *);
void lpfc_update_vport_wwn(struct lpfc_vport *vport);
int lpfc_config_port_post(struct lpfc_hba *);
int lpfc_sli4_refresh_params(struct lpfc_hba *phba);
-int lpfc_hba_down_prep(struct lpfc_hba *);
+void lpfc_hba_down_prep(struct lpfc_hba *phba);
int lpfc_hba_down_post(struct lpfc_hba *);
void lpfc_hba_init(struct lpfc_hba *, uint32_t *);
int lpfc_sli3_post_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, int cnt);
@@ -872,10 +872,9 @@ lpfc_hba_down_link(struct lpfc_hba *phba, uint32_t flag)
* bringing down the SLI Layer.
*
* Return codes
- * 0 - success.
- * Any other value - error.
+ * void.
**/
-int
+void
lpfc_hba_down_prep(struct lpfc_hba *phba)
{
struct lpfc_vport **vports;
@@ -897,7 +896,6 @@ lpfc_hba_down_prep(struct lpfc_hba *phba)
lpfc_cleanup_discovery_resources(vports[i]);
lpfc_destroy_vport_work_array(phba, vports);
}
- return 0;
}
/**
Optimize unused integer return values, add the parameter name to the function lpfc_hba_down_prep header file. Signed-off-by: zhoun <zhounan@nfschina.com> Committer: zhoun <zhounan@nfschina.com> --- drivers/scsi/lpfc/lpfc_crtn.h | 2 +- drivers/scsi/lpfc/lpfc_init.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)