Revert "TLS: Correct handling of returned error values."

This reverts commit 9aaeaefa41.
This commit is contained in:
YAMAMOTO Takashi
2021-06-09 15:58:16 +09:00
committed by Xiang Xiao
parent 5b2a17b892
commit 8079d9fac3
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -66,9 +66,10 @@ int tls_alloc(void)
*/
ret = _SEM_WAIT(&tinfo->ta_tlssem);
if (ret < 0)
if (ERROR == ret)
{
ret = _SEM_ERRVAL(ret);
ret = -get_errno();
goto errout_with_errno;
}
+1 -1
View File
@@ -79,7 +79,7 @@ int tls_free(int tlsindex)
}
else
{
ret = _SEM_ERRVAL(ret);
ret = -get_errno();
}
}