mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 14:03:40 +00:00
rtl8188eu: Remove CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
89aeab9b41
commit
b87f3301ed
1 changed files with 1 additions and 12 deletions
|
@ -39,12 +39,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
||||||
u8 reqtype;
|
u8 reqtype;
|
||||||
u8 *pIo_buf;
|
u8 *pIo_buf;
|
||||||
int vendorreq_times = 0;
|
int vendorreq_times = 0;
|
||||||
|
u8 tmp_buf[MAX_USB_IO_CTL_SIZE];
|
||||||
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
|
|
||||||
u8 *tmp_buf;
|
|
||||||
#else /* use stack memory */
|
|
||||||
u8 tmp_buf[MAX_USB_IO_CTL_SIZE];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)){
|
if ((padapter->bSurpriseRemoved) ||(padapter->pwrctrlpriv.pnp_bstop_trx)){
|
||||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usbctrl_vendorreq:(padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
|
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usbctrl_vendorreq:(padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
|
||||||
|
@ -132,12 +127,6 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* release IO memory used by vendorreq */
|
|
||||||
#ifdef CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE
|
|
||||||
rtw_mfree(tmp_buf, tmp_buflen);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
release_mutex:
|
release_mutex:
|
||||||
_exit_critical_mutex(&pdvobjpriv->usb_vendor_req_mutex, NULL);
|
_exit_critical_mutex(&pdvobjpriv->usb_vendor_req_mutex, NULL);
|
||||||
exit:
|
exit:
|
||||||
|
|
Loading…
Reference in a new issue