mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-06 13:33:06 +00:00
rtl8188eu: Remove CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC - defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
72ff07da57
commit
e93cc6a163
4 changed files with 0 additions and 28 deletions
|
@ -61,21 +61,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
|||
_enter_critical_mutex(&pdvobjpriv->usb_vendor_req_mutex, NULL);
|
||||
|
||||
/* Acquire IO memory for vendorreq */
|
||||
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_PREALLOC
|
||||
pIo_buf = pdvobjpriv->usb_vendor_req_buf;
|
||||
#else
|
||||
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
|
||||
tmp_buf = rtw_malloc( (u32) len + ALIGNMENT_UNIT);
|
||||
tmp_buflen = (u32)len + ALIGNMENT_UNIT;
|
||||
#else /* use stack memory */
|
||||
tmp_buflen = MAX_USB_IO_CTL_SIZE;
|
||||
#endif
|
||||
|
||||
/* Added by Albert 2010/02/09 */
|
||||
/* For mstar platform, mstar suggests the address for USB IO should be 16 bytes alignment. */
|
||||
/* Trying to fix it here. */
|
||||
pIo_buf = (tmp_buf==NULL)?NULL:tmp_buf + ALIGNMENT_UNIT -((SIZE_PTR)(tmp_buf) & 0x0f );
|
||||
#endif
|
||||
|
||||
if ( pIo_buf== NULL) {
|
||||
DBG_88E( "[%s] pIo_buf == NULL\n", __func__ );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue