Browse Source

qcacld-3.0: Update wma_discard_fw_event

Update return type of wma_discard_fw_event to return QDF_STATUS
to match scheduler_msg_process_fn_t.

Change-Id: I1746b170318be30810ddf7cc6be8156a3940b595
CRs-fixed: 2698308
Lincoln Tran 4 years ago
parent
commit
cf98b324aa
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/wma/src/wma_main.c

+ 4 - 2
core/wma/src/wma_main.c

@@ -1462,15 +1462,17 @@ QDF_STATUS wma_process_hal_pwr_dbg_cmd(WMA_HANDLE handle,
 	return status;
 }
 
-static void wma_discard_fw_event(struct scheduler_msg *msg)
+static QDF_STATUS wma_discard_fw_event(struct scheduler_msg *msg)
 {
 	if (!msg->bodyptr)
-		return;
+		return QDF_STATUS_E_INVAL;
 
 	qdf_mem_free(msg->bodyptr);
 	msg->bodyptr = NULL;
 	msg->bodyval = 0;
 	msg->type = 0;
+
+	return QDF_STATUS_SUCCESS;
 }
 
 QDF_STATUS