diff options
author | Josh Cartwright <joshc@ni.com> | 2015-08-31 11:35:33 -0500 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2015-09-17 21:19:47 +0200 |
commit | db7b824f8356e3cb74352c6f5faa999b6d43ebce (patch) | |
tree | bcdae5aa22395aa3939b0e5288f71e4c96948477 | |
parent | 8d20bc5511e4ba25efa6750c738399d95a030575 (diff) | |
download | rt-tests-db7b824f8356e3cb74352c6f5faa999b6d43ebce.tar.gz |
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 <joshc@ni.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/cyclictest/cyclictest.c | 3 |
1 files changed, 0 insertions, 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) { |