Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: recv_linux: Remove unused function

Remove the function r8712_os_read_port() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rickard Strandqvist and committed by
Greg Kroah-Hartman
b086d02b cd480ed6

-15
-14
drivers/staging/rtl8712/recv_linux.c
··· 137 137 precvpriv->rx_drop++; 138 138 } 139 139 140 - void r8712_os_read_port(struct _adapter *padapter, struct recv_buf *precvbuf) 141 - { 142 - struct recv_priv *precvpriv = &padapter->recvpriv; 143 - 144 - precvbuf->ref_cnt--; 145 - /*free skb in recv_buf*/ 146 - dev_kfree_skb_any(precvbuf->pskb); 147 - precvbuf->pskb = NULL; 148 - precvbuf->reuse = false; 149 - if (!precvbuf->irp_pending) 150 - r8712_read_port(padapter, precvpriv->ff_hwaddr, 0, 151 - (unsigned char *)precvbuf); 152 - } 153 - 154 140 static void _r8712_reordering_ctrl_timeout_handler (void *FunctionContext) 155 141 { 156 142 struct recv_reorder_ctrl *preorder_ctrl =
-1
drivers/staging/rtl8712/recv_osdep.h
··· 46 46 struct recv_buf *precvbuf); 47 47 int r8712_os_recvbuf_resource_free(struct _adapter *padapter, 48 48 struct recv_buf *precvbuf); 49 - void r8712_os_read_port(struct _adapter *padapter, struct recv_buf *precvbuf); 50 49 void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl); 51 50 52 51 #endif