staging:r8188eu: change poiter type from u8 to void for pallocated_frame_buf member of recv_priv structure
pallocated_frame_buf used only to preserve pointer for vfree function. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d70c509152
commit
165601c98f
|
@ -71,7 +71,7 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
|
||||||
if (!precvpriv->pallocated_frame_buf)
|
if (!precvpriv->pallocated_frame_buf)
|
||||||
return _FAIL;
|
return _FAIL;
|
||||||
|
|
||||||
precvframe = (struct recv_frame *)PTR_ALIGN(precvpriv->pallocated_frame_buf, RXFRAME_ALIGN_SZ);
|
precvframe = PTR_ALIGN(precvpriv->pallocated_frame_buf, RXFRAME_ALIGN_SZ);
|
||||||
|
|
||||||
for (i = 0; i < NR_RECVFRAME; i++) {
|
for (i = 0; i < NR_RECVFRAME; i++) {
|
||||||
INIT_LIST_HEAD(&(precvframe->list));
|
INIT_LIST_HEAD(&(precvframe->list));
|
||||||
|
|
|
@ -164,7 +164,7 @@ struct recv_priv {
|
||||||
struct __queue free_recv_queue;
|
struct __queue free_recv_queue;
|
||||||
struct __queue recv_pending_queue;
|
struct __queue recv_pending_queue;
|
||||||
struct __queue uc_swdec_pending_queue;
|
struct __queue uc_swdec_pending_queue;
|
||||||
u8 *pallocated_frame_buf;
|
void *pallocated_frame_buf;
|
||||||
struct adapter *adapter;
|
struct adapter *adapter;
|
||||||
u32 bIsAnyNonBEPkts;
|
u32 bIsAnyNonBEPkts;
|
||||||
u64 rx_bytes;
|
u64 rx_bytes;
|
||||||
|
|
Loading…
Reference in a new issue