mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-01-20 02:10:10 +03:00
remove DoNothing function (improves coverity reports)
This commit is contained in:
@ -1166,12 +1166,6 @@ void SetThreadName(UINT thread_id, char *name, void *param)
|
||||
#endif // OS_WIN32
|
||||
}
|
||||
|
||||
// Do Nothing
|
||||
UINT DoNothing()
|
||||
{
|
||||
return g_zero;
|
||||
}
|
||||
|
||||
// Thread creation (pool)
|
||||
THREAD *NewThreadNamed(THREAD_PROC *thread_proc, void *param, char *name)
|
||||
{
|
||||
@ -1185,11 +1179,6 @@ THREAD *NewThreadNamed(THREAD_PROC *thread_proc, void *param, char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (IsTrackingEnabled() == false)
|
||||
{
|
||||
DoNothing();
|
||||
}
|
||||
|
||||
Inc(thread_count);
|
||||
|
||||
LockSk(thread_pool);
|
||||
|
||||
Reference in New Issue
Block a user