lkml.org 
[lkml]   [2022]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] driver:Change the return value to void and add the parameter name to lpfc_hba_down_prep
Date
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(-)

diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h
index b1be0dd0337a..5f7bfbfd7cad 100644
--- a/drivers/scsi/lpfc/lpfc_crtn.h
+++ b/drivers/scsi/lpfc/lpfc_crtn.h
@@ -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);
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 93b94c64518d..2439c474eddc 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -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;
}

/**
--
2.27.0
\
 
 \ /
  Last update: 2022-06-10 14:09    [W:0.036 / U:2.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site