Răsfoiți Sursa

qcacld-3.0: Remove cds_crypto_init()/deinit()

Functions cds_crypto_init() & cds_crypto_deinit() are unused,
so remove them.

Change-Id: If33ee8874b65a5b3e7d5f853b943d12bb1bbb84f
CRs-Fixed: 2371098
Jeff Johnson 6 ani în urmă
părinte
comite
a50ab22d4a
2 a modificat fișierele cu 0 adăugiri și 45 ștergeri
  1. 0 4
      core/cds/inc/cds_utils.h
  2. 0 41
      core/cds/src/cds_utils.c

+ 0 - 4
core/cds/inc/cds_utils.h

@@ -101,10 +101,6 @@ enum cds_band_type {
    Function declarations and documenation
    ------------------------------------------------------------------------*/
 
-QDF_STATUS cds_crypto_init(uint32_t *phCryptProv);
-
-QDF_STATUS cds_crypto_deinit(uint32_t hCryptProv);
-
 uint32_t cds_chan_to_freq(uint8_t chan);
 uint8_t cds_freq_to_chan(uint32_t freq);
 enum cds_band_type cds_chan_to_band(uint32_t chan);

+ 0 - 41
core/cds/src/cds_utils.c

@@ -181,47 +181,6 @@ static void cds_cmac_calc_mic(struct crypto_cipher *tfm,
 }
 #endif
 
-/*--------------------------------------------------------------------------
-
-   \brief cds_crypto_init() - Initializes Crypto module
-
-   The cds_crypto_init() function initializes Crypto module.
-
-   \param phCryptProv - pointer to the Crypt handle
-
-   \return QDF_STATUS_SUCCESS - Successfully generated random memory.
-
-   QDF_STATUS_E_FAULT  - pbBuf is an invalid pointer.
-
-   QDF_STATUS_E_FAILURE - default return value if it fails due to
-   unknown reasons
-
-   ***QDF_STATUS_E_RESOURCES - System resources (other than memory)
-   are unavailable
-   \sa
-
-    ( *** return value not considered yet )
-   --------------------------------------------------------------------------*/
-QDF_STATUS cds_crypto_init(uint32_t *phCryptProv)
-{
-	QDF_STATUS uResult = QDF_STATUS_E_FAILURE;
-
-	/* This implementation doesn't require a crypto context */
-	*phCryptProv = 0;
-	uResult = QDF_STATUS_SUCCESS;
-	return uResult;
-}
-
-QDF_STATUS cds_crypto_deinit(uint32_t hCryptProv)
-{
-	QDF_STATUS uResult = QDF_STATUS_E_FAILURE;
-
-	/* CryptReleaseContext succeeded */
-	uResult = QDF_STATUS_SUCCESS;
-
-	return uResult;
-}
-
 #ifdef WLAN_FEATURE_11W
 uint8_t cds_get_mmie_size(void)
 {