Browse Source

qcacld-3.0: Remove obsolete cds_core_return_msg API

After control path scheduler componentization cds_core_return_msg
API is no longer used hence remove it.

Change-Id: I66122b918f0b27236b2b5ca454e52b0de20b16ee
CRs-Fixed: 1106115
Rajeev Kumar 8 years ago
parent
commit
08ef0d620a
2 changed files with 2 additions and 38 deletions
  1. 1 3
      core/cds/inc/cds_api.h
  2. 1 35
      core/cds/src/cds_api.c

+ 1 - 3
core/cds/inc/cds_api.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -217,8 +217,6 @@ QDF_STATUS cds_post_disable(v_CONTEXT_t cds_context);
 
 QDF_STATUS cds_close(v_CONTEXT_t cds_context);
 
-void cds_core_return_msg(void *pVContext, p_cds_msg_wrapper pMsgWrapper);
-
 void *cds_get_context(QDF_MODULE_ID moduleId);
 
 v_CONTEXT_t cds_get_global_context(void);

+ 1 - 35
core/cds/src/cds_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -1491,40 +1491,6 @@ void cds_wma_complete_cback(void *pUserData)
 	}
 } /* cds_wma_complete_cback() */
 
-/**
- * cds_core_return_msg() - return core message
- * @pVContext: pointer to cds context
- * @pMsgWrapper: pointer to message wrapper
- *
- * Return: none
- */
-void cds_core_return_msg(void *pVContext, p_cds_msg_wrapper pMsgWrapper)
-{
-	p_cds_contextType p_cds_context = (p_cds_contextType) pVContext;
-
-	QDF_ASSERT(gp_cds_context == p_cds_context);
-
-	if (gp_cds_context != p_cds_context) {
-		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s: gp_cds_context != p_cds_context", __func__);
-		return;
-	}
-
-	QDF_ASSERT(NULL != pMsgWrapper);
-
-	if (pMsgWrapper == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s: pMsgWrapper == NULL in function", __func__);
-		return;
-	}
-
-	/*
-	** Return the message on the free message queue
-	*/
-	INIT_LIST_HEAD(&pMsgWrapper->msgNode);
-	cds_mq_put(&p_cds_context->freeVosMq, pMsgWrapper);
-} /* cds_core_return_msg() */
-
 /**
  * cds_get_vdev_types() - get vdev type
  * @mode: mode