Commit 606c5cf0 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8712: r8712_init_recvbuf(): Change return type

Change return type of r8712_init_recvbuf from int to void as it always
returned _SUCCESS and this return value was never used at any call site.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190722092341.21030-7-nishkadg.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 34ef8dbe
...@@ -107,7 +107,7 @@ void r8712_free_recv_priv(struct recv_priv *precvpriv) ...@@ -107,7 +107,7 @@ void r8712_free_recv_priv(struct recv_priv *precvpriv)
skb_queue_len(&precvpriv->free_recv_skb_queue)); skb_queue_len(&precvpriv->free_recv_skb_queue));
} }
int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf) void r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf)
{ {
precvbuf->transfer_len = 0; precvbuf->transfer_len = 0;
precvbuf->len = 0; precvbuf->len = 0;
...@@ -118,7 +118,6 @@ int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf) ...@@ -118,7 +118,6 @@ int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf)
precvbuf->ptail = precvbuf->pbuf; precvbuf->ptail = precvbuf->pbuf;
precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ; precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ;
} }
return _SUCCESS;
} }
int r8712_free_recvframe(union recv_frame *precvframe, int r8712_free_recvframe(union recv_frame *precvframe,
......
...@@ -136,7 +136,7 @@ union recv_frame { ...@@ -136,7 +136,7 @@ union recv_frame {
} u; } u;
}; };
int r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf); void r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf);
void r8712_rxcmd_event_hdl(struct _adapter *padapter, void *prxcmdbuf); void r8712_rxcmd_event_hdl(struct _adapter *padapter, void *prxcmdbuf);
s32 r8712_signal_scale_mapping(s32 cur_sig); s32 r8712_signal_scale_mapping(s32 cur_sig);
void r8712_reordering_ctrl_timeout_handler(void *pcontext); void r8712_reordering_ctrl_timeout_handler(void *pcontext);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment