Переглянути джерело

qcacld-3.0: Remove unused sys_mc_process_msg() parameter

Currently sys_mc_process_msg() takes a p_cds_context parameter.  At
one time this parameter was needed in calls to cds_get_context(), but
that is no longer the case, so remove this now unused parameter.

Change-Id: Idf9829e76846888c783d1b0b064879cd539bd8a6
CRs-Fixed: 2109239
Jeff Johnson 7 роки тому
батько
коміт
52e0c4384e

+ 0 - 30
core/mac/src/sys/common/inc/wlan_qct_sys.h

@@ -105,36 +105,6 @@ typedef void (*sysResponseCback)(void *pUserData);
 QDF_STATUS sys_build_message_header(SYS_MSG_ID sysMsgId,
 				    struct scheduler_msg *pMsg);
 
-/*----------------------------------------------------------------------------
-
-   \brief sys_mc_process_msg() - process SYS messages on the Main Controller thread
-
-   This function processes SYS Messages on the Main Controller thread.
-   SYS messages consist of all 'legacy' messages (messages bound for legacy
-   modules like LIM, HAL, PE, etc.) as well as newly defined SYS message
-   types.
-
-   SYS messages are identified by their type (in the SYS_MESSAGES enum) as
-   well as a 'cookie' that is in the reserved field of the message structure.
-   This 'cookie' is introduced to prevent any message type/ID conflicts with
-   the 'legacy' message types.
-
-   Any module attempting to post a message to the SYS module must set the
-   message type to one of the types in the SYS_MESSAGE enum *and* must also
-   set the Reserved field in the message body to SYS_MSG_COOKIE.
-
-   \param p_cds_context - pointer to the CDS Context
-
-   \param pMsg - pointer to the message to be processed.
-
-   \return - QDF_STATUS_SUCCESS - the message was processed successfully.
-
-   QDF_STATUS_E_BADMSG - a bad (unknown type) message was received
-   and subsequently not processed.
-   \sa
-
-   --------------------------------------------------------------------------*/
-QDF_STATUS sys_mc_process_msg(v_CONTEXT_t p_cds_context, struct scheduler_msg *pMsg);
 QDF_STATUS sys_mc_process_handler(struct scheduler_msg *msg);
 
 void wlan_sys_probe(void);

+ 2 - 9
core/mac/src/sys/common/src/wlan_qct_sys.c

@@ -64,7 +64,7 @@ QDF_STATUS sys_build_message_header(SYS_MSG_ID sysMsgId,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS sys_mc_process_msg(v_CONTEXT_t p_cds_context, struct scheduler_msg *pMsg)
+static QDF_STATUS sys_mc_process_msg(struct scheduler_msg *pMsg)
 {
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
 	tpAniSirGlobal mac_ctx;
@@ -149,14 +149,7 @@ QDF_STATUS sys_mc_process_msg(v_CONTEXT_t p_cds_context, struct scheduler_msg *p
 
 QDF_STATUS sys_mc_process_handler(struct scheduler_msg *msg)
 {
-	void *cds_ctx = cds_get_global_context();
-
-	if (cds_ctx == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_ERROR,
-			"CDS context is NULL");
-		return QDF_STATUS_E_FAILURE;
-	}
-	return sys_mc_process_msg(cds_ctx, msg);
+	return sys_mc_process_msg(msg);
 }
 
 /**