---
 src/plm/common/plms_hsm.c | 27 ---------------------------
 src/plm/common/plms_hsm.h |  1 -
 2 files changed, 28 deletions(-)

diff --git a/src/plm/common/plms_hsm.c b/src/plm/common/plms_hsm.c
index f3bc478..f8f7b62 100644
--- a/src/plm/common/plms_hsm.c
+++ b/src/plm/common/plms_hsm.c
@@ -88,7 +88,6 @@ PLMS_HSM_CB *hsm_cb = &_hsm_cb;
  *   FUNCTION PROTOTYPES
  ***********************************************************************/
 SaUint32T plms_hsm_initialize(PLMS_HPI_CONFIG *hpi_cfg);
-SaUint32T plms_hsm_finalize(void);
 SaUint32T plms_get_hotswap_model(const SaHpiEntityPathT *,
                                 PLMS_HPI_STATE_MODEL *);
 static SaUint32T hsm_get_hotswap_model(SaHpiRptEntryT *rpt_entry,
@@ -266,32 +265,6 @@ SaUint32T plms_hsm_initialize(PLMS_HPI_CONFIG *hpi_cfg)
        TRACE_LEAVE();
        return NCSCC_RC_SUCCESS;
 }
-/***************************************************************************
- * @brief      Closes HPI session and terminates HSM thread
- *
- * @param[in]
- *
- * @return     NCSCC_RC_SUCCESS/NCSCC_RC_FAILURE
- ***************************************************************************/
-SaUint32T plms_hsm_finalize(void)
-{
-       PLMS_HSM_CB *cb = hsm_cb;
-       SaErrorT rc;
-
-       /* Close the HPI session */
-       rc = saHpiSessionClose(cb->session_id);
-       if (SA_OK != rc)
-               LOG_ER("HSM:Close session return error: %d:\n", rc);
-       /* Close connection to NTF */
-       rc = saNtfFinalize(cb->plm_ntf_hdl);
-       if (SA_OK != rc)
-               LOG_ER("HSM: saNtfFinalize return error: %d:\n", rc);
-
-       /* Kill the HSM thread */
-       pthread_cancel(cb->threadid);
-
-       return NCSCC_RC_SUCCESS;
-}
 
 SaUint32T plms_get_hotswap_model(const SaHpiEntityPathT *epath_ptr,
                                 PLMS_HPI_STATE_MODEL *model)
diff --git a/src/plm/common/plms_hsm.h b/src/plm/common/plms_hsm.h
index 4b33327..db62330 100644
--- a/src/plm/common/plms_hsm.h
+++ b/src/plm/common/plms_hsm.h
@@ -50,7 +50,6 @@ extern HSM_HA_STATE hsm_ha_state;
 
 /* Function Declarations */
 SaUint32T plms_hsm_initialize(PLMS_HPI_CONFIG *hpi_cfg);
-SaUint32T plms_hsm_finalize(void);
 SaUint32T hsm_get_idr_info(SaHpiRptEntryT *rpt_entry, PLMS_INV_DATA *inv_data);
 
 SaUint32T convert_entitypath_to_string(const SaHpiEntityPathT *entity_path,
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to