浏览代码

qcacld-3.0: Remove unnecessary wma_handle checks

Remove unnecessary wma_handle checks and cleanup the code.

Change-Id: Ia8daf24037d94996f35b9eefc661713664c0fce9
CRs-Fixed: 2823125
Srinivas Girigowda 4 年之前
父节点
当前提交
6659ed5e49
共有 1 个文件被更改,包括 0 次插入16 次删除
  1. 0 16
      core/wma/src/wma_main.c

+ 0 - 16
core/wma/src/wma_main.c

@@ -154,18 +154,8 @@ void wma_set_fw_wlan_feat_caps(enum cap_bitmap feature)
  */
 static void wma_service_ready_ext_evt_timeout(void *data)
 {
-	tp_wma_handle wma_handle;
-
 	wma_alert("Timeout waiting for WMI_SERVICE_READY_EXT_EVENT");
 
-	wma_handle = (tp_wma_handle) data;
-
-	if (!wma_handle) {
-		wma_err("Invalid WMA handle");
-		goto end;
-	}
-
-end:
 	/* Assert here. Panic is being called in insmod thread */
 	QDF_ASSERT(0);
 }
@@ -9077,14 +9067,8 @@ QDF_STATUS wma_mc_process_handler(struct scheduler_msg *msg)
  */
 void wma_log_completion_timeout(void *data)
 {
-	tp_wma_handle wma_handle;
-
 	wma_debug("Timeout occurred for log completion command");
 
-	wma_handle = (tp_wma_handle) data;
-	if (!wma_handle)
-		wma_err("Invalid WMA handle");
-
 	/* Though we did not receive any event from FW,
 	 * we can flush whatever logs we have with us
 	 */