ソースを参照

qcacmn: Remove unused function htc_add_receive_pkt

Function htc_add_receive_pkt exposes pointer to local
variable to the caller. Since it is unused; remove it.

Change-Id: I3294fde4499a58e6872c44fd8615eff2bfb42556
CRs-Fixed: 2247626
Amar Singhal 6 年 前
コミット
699074598b
2 ファイル変更0 行追加32 行削除
  1. 0 24
      htc/htc_api.h
  2. 0 8
      htc/htc_recv.c

+ 0 - 24
htc/htc_api.h

@@ -439,18 +439,6 @@ QDF_STATUS htc_wait_target(HTC_HANDLE HTCHandle);
  */
 QDF_STATUS htc_start(HTC_HANDLE HTCHandle);
 
-/**
- * htc_add_receive_pkt - Add receive packet to HTC
- * @HTCHandle - HTC handle
- * @pPacket - HTC receive packet to add
- *
- * User must supply HTC packets for capturing incoming HTC frames.
- * The caller must initialize each HTC packet using the
- * SET_HTC_PACKET_INFO_RX_REFILL() macro.
- * Return: A_OK on success
- */
-A_STATUS htc_add_receive_pkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket);
-
 /**
  * htc_connect_service - Connect to an HTC service
  * @HTCHandle - HTC handle
@@ -693,18 +681,6 @@ struct ol_ath_htc_stats *ieee80211_ioctl_get_htc_stats(HTC_HANDLE
  */
 int htc_get_tx_queue_depth(HTC_HANDLE *htc_handle, HTC_ENDPOINT_ID endpoint_id);
 
-#ifdef HIF_USB
-#define HTCReturnReceivePkt(target, p, osbuf) \
-	do { \
-		A_NETBUF_FREE(osbuf);  \
-		if (p->Status == A_CLONE) {  \
-			qdf_mem_free(p);  \
-		} \
-	} while (0)
-#else
-#define HTCReturnReceivePkt(target, p, osbuf)   htc_add_receive_pkt(target, p)
-#endif
-
 #ifdef WLAN_FEATURE_FASTPATH
 void htc_ctrl_msg_cmpl(HTC_HANDLE htc_pdev, HTC_ENDPOINT_ID htc_ep_id);
 

+ 0 - 8
htc/htc_recv.c

@@ -558,14 +558,6 @@ A_STATUS htc_add_receive_pkt_multiple(HTC_HANDLE HTCHandle,
 	return status;
 }
 
-A_STATUS htc_add_receive_pkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket)
-{
-	HTC_PACKET_QUEUE queue;
-
-	INIT_HTC_PACKET_QUEUE_AND_ADD(&queue, pPacket);
-	return htc_add_receive_pkt_multiple(HTCHandle, &queue);
-}
-
 void htc_flush_rx_hold_queue(HTC_TARGET *target, HTC_ENDPOINT *pEndpoint)
 {
 	HTC_PACKET *pPacket;