diff options
author | John Kacur <jkacur@redhat.com> | 2021-08-18 14:46:01 -0400 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2021-08-18 14:46:01 -0400 |
commit | ea5a1ea9d57c01865b42e95f827eacd905454936 (patch) | |
tree | 2bfbe7732f6970d7bcd95311d34d144eadb864f5 | |
parent | 62d4d6843be7715aa7e3802c97fde937b7da434e (diff) | |
download | rt-tests-ea5a1ea9d57c01865b42e95f827eacd905454936.tar.gz |
rt-tests: ptsematest: Remove deadcode
Remove deadcode from ptsematest.c
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/ptsematest/ptsematest.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c index 821e584..e000c30 100644 --- a/src/ptsematest/ptsematest.c +++ b/src/ptsematest/ptsematest.c @@ -58,7 +58,6 @@ struct params { void *semathread(void *param) { int mustgetcpu = 0; - int first = 1; struct params *par = param; cpu_set_t mask; int policy = SCHED_FIFO; @@ -92,11 +91,6 @@ void *semathread(void *param) if (mustgetcpu) par->cpu = get_cpu(); } else { - /* Receiver */ - if (!first) { - pthread_mutex_lock(&syncmutex[par->num]); - first = 1; - } pthread_mutex_lock(&testmutex[par->num]); /* ... Got the lock: End of latency measurement */ |