mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove code related to PLATFORM_OS_XP
This commit is contained in:
@@ -843,11 +843,6 @@ void _rtw_init_sema(_sema *sema, int init_val)
|
||||
|
||||
sema_init(sema, init_val);
|
||||
|
||||
#endif
|
||||
#ifdef PLATFORM_OS_XP
|
||||
|
||||
KeInitializeSemaphore(sema, init_val, SEMA_UPBND); /* count=0; */
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
@@ -872,11 +867,6 @@ void _rtw_up_sema(_sema *sema)
|
||||
|
||||
up(sema);
|
||||
|
||||
#endif
|
||||
#ifdef PLATFORM_OS_XP
|
||||
|
||||
KeReleaseSemaphore(sema, IO_NETWORK_INCREMENT, 1, FALSE);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
@@ -895,13 +885,6 @@ u32 _rtw_down_sema(_sema *sema)
|
||||
return _SUCCESS;
|
||||
|
||||
#endif
|
||||
#ifdef PLATFORM_OS_XP
|
||||
|
||||
if (STATUS_SUCCESS == KeWaitForSingleObject(sema, Executive, KernelMode, TRUE, NULL))
|
||||
return _SUCCESS;
|
||||
else
|
||||
return _FAIL;
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
if (WAIT_OBJECT_0 == WaitForSingleObject(*sema, INFINITE))
|
||||
@@ -921,9 +904,6 @@ inline void thread_exit(_completion *comp)
|
||||
ExitThread(STATUS_SUCCESS);
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_XP
|
||||
PsTerminateSystemThread(STATUS_SUCCESS);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void _rtw_init_completion(_completion *comp)
|
||||
@@ -957,12 +937,6 @@ void _rtw_mutex_init(_mutex *pmutex)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_XP
|
||||
|
||||
KeInitializeMutex(pmutex, 0);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
*pmutex = CreateMutex(NULL, _FALSE, NULL);
|
||||
#endif
|
||||
@@ -979,10 +953,6 @@ void _rtw_mutex_free(_mutex *pmutex)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_XP
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_OS_CE
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user