Quellcode durchsuchen

qcacld-3.0: Remove sme_free_msg()

Function sme_free_msg() is unused so remove it.

Change-Id: I30a778ed6ce54852cd707b8a13d8a370dad2e5b5
CRs-Fixed: 2261767
Jeff Johnson vor 6 Jahren
Ursprung
Commit
577f1450a8
2 geänderte Dateien mit 0 neuen und 13 gelöschten Zeilen
  1. 0 1
      core/sme/inc/sme_api.h
  2. 0 12
      core/sme/src/common/sme_api.c

+ 0 - 1
core/sme/inc/sme_api.h

@@ -344,7 +344,6 @@ QDF_STATUS sme_ser_cmd_callback(void *buf,
 				enum wlan_serialization_cb_reason reason);
 QDF_STATUS sme_process_msg(tHalHandle hHal, struct scheduler_msg *pMsg);
 QDF_STATUS sme_mc_process_handler(struct scheduler_msg *msg);
-void sme_free_msg(tHalHandle hHal, struct scheduler_msg *pMsg);
 QDF_STATUS sme_scan_get_result(tHalHandle hHal, uint8_t sessionId,
 		tCsrScanResultFilter *pFilter,
 		tScanResultHandle *phResult);

+ 0 - 12
core/sme/src/common/sme_api.c

@@ -2478,18 +2478,6 @@ static QDF_STATUS sme_process_nss_update_resp(tpAniSirGlobal mac, uint8_t *msg)
 	return QDF_STATUS_SUCCESS;
 }
 
-/* No need to hold the global lock here because this function can only be
- * called after sme_stop.
- */
-void sme_free_msg(tHalHandle hHal, struct scheduler_msg *pMsg)
-{
-	if (pMsg) {
-		if (pMsg->bodyptr)
-			qdf_mem_free(pMsg->bodyptr);
-	}
-
-}
-
 /*
  * sme_stop() - Stop all SME modules and put them at idle state
  *