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

staging: rtl8188eu: Remove 'u32 ref_cnt' from struct recv_buf

Driver isn't making any use of value stored in variable ref_cnt.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

navin patidar and committed by
Greg Kroah-Hartman
a1f3b3fd 74e250e4

-4
-2
drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c
··· 30 30 31 31 void rtl8188eu_init_recvbuf(struct adapter *padapter, struct recv_buf *precvbuf) 32 32 { 33 - precvbuf->ref_cnt = 0; 34 33 } 35 34 36 35 int rtl8188eu_init_recv_priv(struct adapter *padapter) ··· 62 63 res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf); 63 64 if (res == _FAIL) 64 65 break; 65 - precvbuf->ref_cnt = 0; 66 66 precvbuf->adapter = padapter; 67 67 precvbuf++; 68 68 }
-1
drivers/staging/rtl8188eu/include/rtw_recv.h
··· 235 235 }; 236 236 237 237 struct recv_buf { 238 - u32 ref_cnt; 239 238 struct adapter *adapter; 240 239 u8 *pbuf; 241 240 struct urb *purb;
-1
drivers/staging/rtl8188eu/os_dep/recv_linux.c
··· 221 221 { 222 222 struct recv_priv *precvpriv = &padapter->recvpriv; 223 223 224 - precvbuf->ref_cnt--; 225 224 /* free skb in recv_buf */ 226 225 dev_kfree_skb_any(precvbuf->pskb); 227 226 precvbuf->pskb = NULL;