From bb4b1fe3272b4448f20c8f330a57574f8cf6155f Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 11 Mar 2015 20:47:48 -0500 Subject: [PATCH] rtl8188eu: Remove CONFIG_BSD_RX_USE_MBUF Signed-off-by: Larry Finger --- core/rtw_recv.c | 7 +------ include/rtw_recv.h | 9 +-------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 4ddfb1b..c8303dd 100755 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -215,13 +215,8 @@ int rtw_free_recvframe(union recv_frame *precvframe, _queue *pfree_recv_queue) struct adapter *padapter=precvframe->u.hdr.adapter; struct recv_priv *precvpriv = &padapter->recvpriv; - if(precvframe->u.hdr.pkt) - { -#ifdef CONFIG_BSD_RX_USE_MBUF - m_freem(precvframe->u.hdr.pkt); -#else /* CONFIG_BSD_RX_USE_MBUF */ + if(precvframe->u.hdr.pkt) { rtw_skb_free(precvframe->u.hdr.pkt);/* free skb by driver */ -#endif /* CONFIG_BSD_RX_USE_MBUF */ precvframe->u.hdr.pkt = NULL; } diff --git a/include/rtw_recv.h b/include/rtw_recv.h index 295bff5..ee6140b 100755 --- a/include/rtw_recv.h +++ b/include/rtw_recv.h @@ -329,17 +329,10 @@ struct recv_buf len = (unsigned int )(tail - data); */ -struct recv_frame_hdr -{ +struct recv_frame_hdr { _list list; -#ifndef CONFIG_BSD_RX_USE_MBUF struct sk_buff *pkt; struct sk_buff *pkt_newalloc; -#else // CONFIG_BSD_RX_USE_MBUF - _pkt *pkt; - _pkt *pkt_newalloc; -#endif // CONFIG_BSD_RX_USE_MBUF - struct adapter *adapter; u8 fragcnt;