瀏覽代碼

qcacmn: remove addtional checks in __dp_peer_find_by_id

Remove checks which are not needed from __dp_peer_find_by_id

Change-Id: I31e660ef8af070cd6e3f7a892ffd9cc05ec21712
Chaithanya Garrepalli 7 年之前
父節點
當前提交
a4ea3a95ef
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      dp/wifi3.0/dp_peer.h

+ 0 - 8
dp/wifi3.0/dp_peer.h

@@ -41,14 +41,6 @@ __dp_peer_find_by_id(struct dp_soc *soc,
 	peer = (peer_id >= soc->max_peers) ? NULL :
 				soc->peer_id_to_obj_map[peer_id];
 
-	/**
-	 * For bss peer, peer is not really deleted
-	 * but reference count is decremented in firmware
-	 * and hence ignore delete in progress for bss peer
-	 */
-	if (peer && !peer->bss_peer && peer->delete_in_progress)
-		return NULL;
-
 	return peer;
 }