Fix for cppcheck

This commit is contained in:
Tesfa Mael
2020-01-14 12:02:49 -08:00
parent b29fe41a35
commit b67fd249e2
7 changed files with 61 additions and 40 deletions

View File

@@ -2175,6 +2175,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_nofail(void* args)
int ret, err = 0;
int sharedCtx = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self());
#endif
@@ -2397,6 +2400,9 @@ static THREAD_RETURN WOLFSSL_THREAD test_server_loop(void* args)
int loop_count = ((func_args*)args)->argc;
int count = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self());
#endif
@@ -2993,6 +2999,9 @@ static THREAD_RETURN WOLFSSL_THREAD run_wolfssl_server(void* args)
int idx;
int ret, err = 0;
if (args)
return -1;
#ifdef WOLFSSL_TIRTOS
fdOpenSession(Task_self());
#endif