瀏覽代碼

Merge "qca-wifi: Replace void * tgt_if_handle with abstract type"

Linux Build Service Account 6 年之前
父節點
當前提交
7cec258273
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      target_if/cfr/src/target_if_cfr_wifi2_0.c
  2. 2 2
      umac/dfs/core/src/misc/dfs_zero_cac.c

+ 1 - 1
target_if/cfr/src/target_if_cfr_wifi2_0.c

@@ -239,7 +239,7 @@ cfr_wifi2_0_init_pdev(struct wlan_objmgr_psoc *psoc,
 		return QDF_STATUS_E_FAILURE;
 
 	target_type = target_if_cfr_get_target_type(psoc);
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 
 	if (tgt_hdl)
 		info = (&(tgt_hdl->info));

+ 2 - 2
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -2322,7 +2322,7 @@ void dfs_set_precac_enable(struct wlan_dfs *dfs, uint32_t value)
 	tx_ops = &psoc->soc_cb.tx_ops.target_tx_ops;
 	target_type = lmac_get_target_type(dfs->dfs_pdev_obj);
 
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 	if (!tgt_hdl) {
 		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "target_psoc_info is null");
 		return;
@@ -2424,7 +2424,7 @@ uint32_t dfs_get_precac_enable(struct wlan_dfs *dfs)
 		retval = 0;
 	}
 
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 
 	info = (struct tgt_info *)(&tgt_hdl->info);
 	if (!tgt_hdl) {