浏览代码

qcacmn: Fix uninitialized parameters in cmn

fix uninitialized parameters in cmn

Change-Id: Ice6e9ab0a337de04a693615c607f0d5c4019defe
CRs-Fixed: 2559018
Jianmin Zhu 5 年之前
父节点
当前提交
7ec8548fe6
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      dp/wifi3.0/dp_tx_desc.h
  2. 2 2
      target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

+ 1 - 1
dp/wifi3.0/dp_tx_desc.h

@@ -802,7 +802,7 @@ static inline void dp_tx_ext_desc_free_multiple(struct dp_soc *soc,
 	uint8_t freed = num_free;
 
 	/* caller should always guarantee atleast list of num_free nodes */
-	qdf_assert_always(head);
+	qdf_assert_always(elem);
 
 	head = elem;
 	c_elem = head;

+ 2 - 2
target_if/mlme/vdev_mgr/src/target_if_vdev_mgr_tx_ops.c

@@ -844,8 +844,8 @@ static int32_t target_if_vdev_mgr_multi_vdev_restart_get_ref(
 
 	psoc = wlan_pdev_get_psoc(pdev);
 	rx_ops = target_if_vdev_mgr_get_rx_ops(psoc);
-	if (!rx_ops && !rx_ops->vdev_mgr_get_response_timer_info) {
-		mlme_err("VDEV_%d: No Rx Ops", vdev_idx);
+	if (!(rx_ops && rx_ops->vdev_mgr_get_response_timer_info)) {
+		mlme_err("No Rx Ops");
 		return last_vdev_idx;
 	}