mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove code related to PLATFORM_OS_CE
This commit is contained in:
@@ -845,18 +845,10 @@ void _rtw_init_sema(_sema *sema, int init_val)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
if (*sema == NULL)
|
||||
*sema = CreateSemaphore(NULL, init_val, SEMA_UPBND, NULL);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void _rtw_free_sema(_sema *sema)
|
||||
{
|
||||
#ifdef PLATFORM_OS_CE
|
||||
CloseHandle(*sema);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
@@ -869,9 +861,6 @@ void _rtw_up_sema(_sema *sema)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
ReleaseSemaphore(*sema, 1, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
u32 _rtw_down_sema(_sema *sema)
|
||||
@@ -886,12 +875,6 @@ u32 _rtw_down_sema(_sema *sema)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
if (WAIT_OBJECT_0 == WaitForSingleObject(*sema, INFINITE))
|
||||
return _SUCCESS;
|
||||
else
|
||||
return _FAIL;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void thread_exit(_completion *comp)
|
||||
@@ -900,10 +883,6 @@ inline void thread_exit(_completion *comp)
|
||||
complete_and_exit(comp, 0);
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
ExitThread(STATUS_SUCCESS);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
inline void _rtw_init_completion(_completion *comp)
|
||||
@@ -936,10 +915,6 @@ void _rtw_mutex_init(_mutex *pmutex)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
*pmutex = CreateMutex(NULL, _FALSE, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
void _rtw_mutex_free(_mutex *pmutex);
|
||||
@@ -953,9 +928,6 @@ void _rtw_mutex_free(_mutex *pmutex)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
void _rtw_spinlock_init(_lock *plock)
|
||||
|
||||
Reference in New Issue
Block a user