aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-06-21 23:14:54 +0300
committerMikhail Romanko <me@blankhex.com>2024-06-21 23:14:54 +0300
commita99724e93446c96581d379a3cecc2da7453acaa6 (patch)
tree69ec3311b801fd7fd6f29c99e57c629a64061fb1
parent87b34d57be7d7c4d8fd23b2635ee7f530a79bd00 (diff)
downloadbhlib-old-a99724e93446c96581d379a3cecc2da7453acaa6.tar.gz
Remove not used variable from POSIX thread code
-rw-r--r--src/thread_posix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/thread_posix.c b/src/thread_posix.c
index 1122baf..00c1b53 100644
--- a/src/thread_posix.c
+++ b/src/thread_posix.c
@@ -4,14 +4,13 @@
static void *bh_thread_run(void *arg)
{
- bh_tls_t *tls;
bh_task_t *task;
/* Fetch thread data */
task = (bh_task_t *)arg;
/* Setup TLS */
- tls = bh_tls_fetch();
+ bh_tls_fetch();
/* Do the task, mark as done, and if required free it */
task->func(task->data);
@@ -401,4 +400,4 @@ bh_tls_t *bh_tls_fetch(void)
/* Return TLS */
return tls;
-} \ No newline at end of file
+}