diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2010-08-31 05:43:44 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 21:59:52 +0400 |
commit | 16e53729b799dce572557022952d63cc19f47a7b (patch) | |
tree | cdd92b9a1dfb1c3e8b94b4e4a3f8cc93b5491239 /drivers/staging/rtl8712/rtl8712_recv.c | |
parent | 921a86e0e306e42452e16894f2cc792659ede16b (diff) | |
download | linux-16e53729b799dce572557022952d63cc19f47a7b.tar.xz |
staging: r8712u: Fix sparse warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8712/rtl8712_recv.c')
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_recv.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index f63ca4c2f186..569e14b599b4 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -139,20 +139,6 @@ int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf) return res; } -void init_recvframe(union recv_frame *precvframe, struct recv_priv *precvpriv) -{ - struct recv_buf *precvbuf = precvframe->u.hdr.precvbuf; - - /* Perry: This can be removed */ - _init_listhead(&precvframe->u.hdr.list); - precvframe->u.hdr.len = 0; - if (precvbuf) { - if (precvbuf->pskb) - precvframe->u.hdr.pkt = skb_clone(precvbuf->pskb, - GFP_ATOMIC); - } -} - int r8712_free_recvframe(union recv_frame *precvframe, struct __queue *pfree_recv_queue) { @@ -217,7 +203,7 @@ static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, } /*perform defrag*/ -union recv_frame *recvframe_defrag(struct _adapter *adapter, +static union recv_frame *recvframe_defrag(struct _adapter *adapter, struct __queue *defrag_q) { struct list_head *plist, *phead; @@ -351,7 +337,7 @@ union recv_frame *r8712_recvframe_chk_defrag(struct _adapter *padapter, return prtnframe; } -int amsdu_to_msdu(struct _adapter *padapter, union recv_frame *prframe) +static int amsdu_to_msdu(struct _adapter *padapter, union recv_frame *prframe) { int a_len, padding_len; u16 eth_type, nSubframe_Length; |