Browse Source

qcacmn: Add change to remove void usage

Add code to remove void pointer usage for
API dp_peer_unref_delete

Change-Id: If346ea8c174c1fbf705aa52598e703424be943a2
CRs-Fixed: 2480828
Akshay Kosigi 5 years ago
parent
commit
aefbe07345
2 changed files with 2 additions and 3 deletions
  1. 1 1
      dp/wifi3.0/dp_internal.h
  2. 1 2
      dp/wifi3.0/dp_main.c

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

@@ -743,7 +743,7 @@ extern void dp_peer_rx_init(struct dp_pdev *pdev, struct dp_peer *peer);
 void dp_peer_tx_init(struct dp_pdev *pdev, struct dp_peer *peer);
 extern void dp_peer_cleanup(struct dp_vdev *vdev, struct dp_peer *peer);
 extern void dp_peer_rx_cleanup(struct dp_vdev *vdev, struct dp_peer *peer);
-extern void dp_peer_unref_delete(void *peer_handle);
+void dp_peer_unref_delete(struct dp_peer *peer);
 extern void dp_rx_discard(struct dp_vdev *vdev, struct dp_peer *peer,
 	unsigned tid, qdf_nbuf_t msdu_list);
 extern void *dp_find_peer_by_addr(struct cdp_pdev *dev,

+ 1 - 2
dp/wifi3.0/dp_main.c

@@ -5730,9 +5730,8 @@ static void dp_delete_pending_vdev(struct dp_pdev *pdev, struct dp_vdev *vdev,
  * @peer_handle:		Datapath peer handle
  *
  */
-void dp_peer_unref_delete(void *peer_handle)
+void dp_peer_unref_delete(struct dp_peer *peer)
 {
-	struct dp_peer *peer = (struct dp_peer *)peer_handle;
 	struct dp_vdev *vdev = peer->vdev;
 	struct dp_pdev *pdev = vdev->pdev;
 	struct dp_soc *soc = pdev->soc;