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

staging:r8188eu: remove padapter and free_sz arguments of rtw_os_xmit_resource_free function

These argumets does not used by rtw_os_xmit_resource_free function.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
5cd38797 9c054911

+4 -7
+2 -3
drivers/staging/rtl8188eu/core/rtw_xmit.c
··· 220 220 struct adapter *padapter = pxmitpriv->adapter; 221 221 struct xmit_frame *pxmitframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf; 222 222 struct xmit_buf *pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf; 223 - u32 max_xmit_extbuf_size = MAX_XMIT_EXTBUF_SZ; 224 223 u32 num_xmit_extbuf = NR_XMIT_EXTBUFF; 225 224 226 225 if (pxmitpriv->pxmit_frame_buf == NULL) ··· 232 233 } 233 234 234 235 for (i = 0; i < NR_XMITBUFF; i++) { 235 - rtw_os_xmit_resource_free(padapter, pxmitbuf, (MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ)); 236 + rtw_os_xmit_resource_free(pxmitbuf); 236 237 pxmitbuf++; 237 238 } 238 239 ··· 242 243 /* free xmit extension buff */ 243 244 pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmit_extbuf; 244 245 for (i = 0; i < num_xmit_extbuf; i++) { 245 - rtw_os_xmit_resource_free(padapter, pxmitbuf, (max_xmit_extbuf_size + XMITBUF_ALIGN_SZ)); 246 + rtw_os_xmit_resource_free(pxmitbuf); 246 247 pxmitbuf++; 247 248 } 248 249
+1 -2
drivers/staging/rtl8188eu/include/xmit_osdep.h
··· 41 41 42 42 int rtw_os_xmit_resource_alloc(struct adapter *padapter, 43 43 struct xmit_buf *pxmitbuf, u32 alloc_sz); 44 - void rtw_os_xmit_resource_free(struct adapter *padapter, 45 - struct xmit_buf *pxmitbuf, u32 free_sz); 44 + void rtw_os_xmit_resource_free(struct xmit_buf *pxmitbuf); 46 45 47 46 uint rtw_remainder_len(struct pkt_file *pfile); 48 47 void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
+1 -2
drivers/staging/rtl8188eu/os_dep/xmit_linux.c
··· 80 80 return _SUCCESS; 81 81 } 82 82 83 - void rtw_os_xmit_resource_free(struct adapter *padapter, 84 - struct xmit_buf *pxmitbuf, u32 free_sz) 83 + void rtw_os_xmit_resource_free(struct xmit_buf *pxmitbuf) 85 84 { 86 85 int i; 87 86