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
This commit is contained in:
Chaithanya Garrepalli
2018-03-21 14:19:59 +05:30
committed by nshrivas
parent ee82634a98
commit a4ea3a95ef

View File

@@ -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;
}