Skip to contentSkip to conversation

staging: rtl8188eu: Remove unused inline function recvframe_push()

PATCH In review navin patidar 1 participant 5 messages May 7, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 9/13 staging: rtl8188eu: Remove unused inline function recvframe_push()

---
 drivers/staging/rtl8188eu/include/rtw_recv.h |   20 --------------------
 1 file changed, 20 deletions(-)
drivers/staging/rtl8188eu/include/rtw_recv.h +0 -20
index 68c2ad5f..e5b4e10 100644
@@ -296,26 +296,6 @@ static inline u8 *get_rx_status(struct recv_frame *precvframe)
 	return get_rxmem(precvframe);
 }
 
-static inline u8 *recvframe_push(struct recv_frame *precvframe, int sz)
-{
-	/*  append data before rx_data */
-
-	/* add data to the start of recv_frame
- *
- *      This function extends the used data area of the recv_frame at the buffer
- *      start. rx_data must be still larger than rx_head, after pushing.
- */
-	if (precvframe == NULL)
-		return NULL;
-	precvframe->rx_data -= sz;
-	if (precvframe->rx_data < precvframe->rx_head) {
-		precvframe->rx_data += sz;
-		return NULL;
-	}
-	precvframe->len += sz;
-	return precvframe->rx_data;
-}
-
 static inline u8 *recvframe_pull(struct recv_frame *precvframe, int sz)
 {
 	/*  rx_data += sz; move rx_data sz bytes  hereafter */
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 10/13 staging: rtl8188eu: Remove unused inline function get_rx_status()

---
 drivers/staging/rtl8188eu/include/rtw_recv.h |    5 -----
 1 file changed, 5 deletions(-)
drivers/staging/rtl8188eu/include/rtw_recv.h +0 -5
index e5b4e10..dac2e0c 100644
@@ -291,11 +291,6 @@ static inline u8 *get_rxmem(struct recv_frame *precvframe)
 	return precvframe->rx_head;
 }
 
-static inline u8 *get_rx_status(struct recv_frame *precvframe)
-{
-	return get_rxmem(precvframe);
-}
-
 static inline u8 *recvframe_pull(struct recv_frame *precvframe, int sz)
 {
 	/*  rx_data += sz; move rx_data sz bytes  hereafter */
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 11/13 staging: rtl8188eu: Remove 'void *precvbuf' from struct recv_frame

In reply to navin patidar

Remove unused variable 'void *precvbuf'.

---
 drivers/staging/rtl8188eu/hal/usb_ops_linux.c |    1 -
 drivers/staging/rtl8188eu/include/rtw_recv.h  |    1 -
 2 files changed, 2 deletions(-)
drivers/staging/rtl8188eu/hal/usb_ops_linux.c +0 -1
index d8fc747..fc73147 100644
@@ -333,7 +333,6 @@ static int recvbuf2recvframe(struct adapter *adapt, struct sk_buff *pskb)
 		}
 
 		_rtw_init_listhead(&precvframe->list);
-		precvframe->precvbuf = NULL;	/* can't access the precvbuf for new arch. */
 		precvframe->len = 0;
 
 		update_recvframe_attrib_88e(precvframe, prxstat);
drivers/staging/rtl8188eu/include/rtw_recv.h +0 -1
index dac2e0c..e14ba98 100644
@@ -261,7 +261,6 @@ struct recv_frame {
 	u8 *rx_data;
 	u8 *rx_tail;
 	u8 *rx_end;
-	void *precvbuf;
 	struct sta_info *psta;
 	/* for A-MPDU Rx reordering buffer control */
 	struct recv_reorder_ctrl *preorder_ctrl;
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 12/13 staging: rtl8188eu: Remove 'int frame_tag' from struct recv_frame

In reply to navin patidar

Remove unused variable 'int frame_tag'.

---
 drivers/staging/rtl8188eu/include/rtw_recv.h |    1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/include/rtw_recv.h +0 -1
index e14ba98..b0fbdbd 100644
@@ -254,7 +254,6 @@ struct recv_frame {
 	struct sk_buff	 *pkt_newalloc;
 	struct adapter  *adapter;
 	u8 fragcnt;
-	int frame_tag;
 	struct rx_pkt_attrib attrib;
 	uint  len;
 	u8 *rx_head;
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 13/13 staging: rtl8188eu: Remove 'u8 fragcnt' from struct recv_frame

In reply to navin patidar

Remove unused variable 'u8 fragcnt'.

---
 drivers/staging/rtl8188eu/include/rtw_recv.h |    1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/include/rtw_recv.h +0 -1
index b0fbdbd..f0c26ef 100644
@@ -253,7 +253,6 @@ struct recv_frame {
 	struct sk_buff	 *pkt;
 	struct sk_buff	 *pkt_newalloc;
 	struct adapter  *adapter;
-	u8 fragcnt;
 	struct rx_pkt_attrib attrib;
 	uint  len;
 	u8 *rx_head;
Signature · 1 line
1.7.10.4