mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: Remove the PLATFORM_LINUX tests
This configuration parameter is always selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
dd606233f2
commit
62ef49de15
46 changed files with 6 additions and 870 deletions
|
@ -2542,9 +2542,7 @@ struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv)//(_queue *pf
|
|||
struct xmit_frame *pxframe = NULL;
|
||||
_list *plist, *phead;
|
||||
_queue *pfree_xmit_queue = &pxmitpriv->free_xmit_queue;
|
||||
#ifdef PLATFORM_LINUX
|
||||
_adapter *padapter = pxmitpriv->adapter;
|
||||
#endif //PLATFORM_LINUX
|
||||
|
||||
_func_enter_;
|
||||
|
||||
|
@ -4243,9 +4241,7 @@ void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms)
|
|||
{
|
||||
sctx->timeout_ms = timeout_ms;
|
||||
sctx->submit_time= rtw_get_current_time();
|
||||
#ifdef PLATFORM_LINUX /* TODO: add condition wating interface for other os */
|
||||
init_completion(&sctx->done);
|
||||
#endif
|
||||
sctx->status = RTW_SCTX_SUBMITTED;
|
||||
}
|
||||
|
||||
|
@ -4255,7 +4251,6 @@ int rtw_sctx_wait(struct submit_ctx *sctx)
|
|||
unsigned long expire;
|
||||
int status = 0;
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
expire= sctx->timeout_ms ? msecs_to_jiffies(sctx->timeout_ms) : MAX_SCHEDULE_TIMEOUT;
|
||||
if (!wait_for_completion_timeout(&sctx->done, expire)) {
|
||||
/* timeout, do something?? */
|
||||
|
@ -4264,7 +4259,6 @@ int rtw_sctx_wait(struct submit_ctx *sctx)
|
|||
} else {
|
||||
status = sctx->status;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (status == RTW_SCTX_DONE_SUCCESS) {
|
||||
ret = _SUCCESS;
|
||||
|
@ -4294,9 +4288,7 @@ void rtw_sctx_done_err(struct submit_ctx **sctx, int status)
|
|||
if (rtw_sctx_chk_waring_status(status))
|
||||
DBG_871X("%s status:%d\n", __func__, status);
|
||||
(*sctx)->status = status;
|
||||
#ifdef PLATFORM_LINUX
|
||||
complete(&((*sctx)->done));
|
||||
#endif
|
||||
*sctx = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue