diff --git a/hal/usb_ops_linux.c b/hal/usb_ops_linux.c index b1639b8..9e5d410 100644 --- a/hal/usb_ops_linux.c +++ b/hal/usb_ops_linux.c @@ -39,12 +39,7 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u u8 reqtype; u8 *pIo_buf; int vendorreq_times = 0; - - #ifdef CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE - u8 *tmp_buf; - #else /* use stack memory */ - u8 tmp_buf[MAX_USB_IO_CTL_SIZE]; - #endif + u8 tmp_buf[MAX_USB_IO_CTL_SIZE]; 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")); @@ -132,12 +127,6 @@ static int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u break; } - - /* release IO memory used by vendorreq */ - #ifdef CONFIG_USB_VENDOR_REQ_BUFFER_DYNAMIC_ALLOCATE - rtw_mfree(tmp_buf, tmp_buflen); - #endif - release_mutex: _exit_critical_mutex(&pdvobjpriv->usb_vendor_req_mutex, NULL); exit: