staging: rtl8712: r8712_recv_entry(): Change return type
Change return type of r8712_recv_entry from s32 to void as its return value is never used. Modify or remove return statements accordingly. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190808064012.12661-4-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1bdcb3666a
commit
af556d30d3
|
@ -21,7 +21,7 @@
|
|||
void _r8712_init_recv_priv(struct recv_priv *precvpriv,
|
||||
struct _adapter *padapter);
|
||||
void _r8712_free_recv_priv(struct recv_priv *precvpriv);
|
||||
s32 r8712_recv_entry(union recv_frame *precv_frame);
|
||||
void r8712_recv_entry(union recv_frame *precv_frame);
|
||||
void r8712_recv_indicatepkt(struct _adapter *adapter,
|
||||
union recv_frame *precv_frame);
|
||||
void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup);
|
||||
|
|
|
@ -648,7 +648,7 @@ int r8712_wlanhdr_to_ethhdr(union recv_frame *precvframe)
|
|||
return 0;
|
||||
}
|
||||
|
||||
s32 r8712_recv_entry(union recv_frame *precvframe)
|
||||
void r8712_recv_entry(union recv_frame *precvframe)
|
||||
{
|
||||
struct _adapter *padapter;
|
||||
struct recv_priv *precvpriv;
|
||||
|
@ -666,9 +666,8 @@ s32 r8712_recv_entry(union recv_frame *precvframe)
|
|||
precvpriv->rx_pkts++;
|
||||
precvpriv->rx_bytes += (uint)(precvframe->u.hdr.rx_tail -
|
||||
precvframe->u.hdr.rx_data);
|
||||
return ret;
|
||||
return;
|
||||
_recv_entry_drop:
|
||||
precvpriv->rx_drop++;
|
||||
padapter->mppriv.rx_pktloss = precvpriv->rx_drop;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue