From db7b824f8356e3cb74352c6f5faa999b6d43ebce Mon Sep 17 00:00:00 2001 From: Josh Cartwright Date: Mon, 31 Aug 2015 11:35:33 -0500 Subject: cyclictest: drop impossible use_fifo conditional The fifothread is only created when use_fifo is set; having the thread itself perform a check is redundant and unnecessary. Drop it. Signed-off-by: Josh Cartwright Signed-off-by: John Kacur --- src/cyclictest/cyclictest.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index b3abfcc..5d83bb1 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1772,9 +1772,6 @@ static void *fifothread(void *param) FILE *fp; int i; - if (use_fifo == 0) - return NULL; - unlink(fifopath); ret = mkfifo(fifopath, 0666); if (ret) { -- cgit 1.2.3-korg