diff mbox series

[3/8] rt-tests: ptsematest: Remove deadcode

Message ID 20210827220244.24210-4-jkacur@redhat.com
State New
Headers show
Series [1/8] rt-tests: deadline_test: Move va_start forward | expand

Commit Message

John Kacur Aug. 27, 2021, 10:02 p.m. UTC
Remove deadcode from ptsematest.c

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/ptsematest/ptsematest.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
index 821e58428e6d..e000c3017081 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 */