From a19f4d463fe26cd49191c07ed7a17f0d79855a0b Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 7 May 2013 13:24:03 +0100 Subject: [PATCH] demo/choose_routing: remove unused variable 'period_ns'. --- demo/choose_routing.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/demo/choose_routing.c b/demo/choose_routing.c index 830a2bf..2902e16 100644 --- a/demo/choose_routing.c +++ b/demo/choose_routing.c @@ -32,7 +32,6 @@ comedi_t *device; int main(int argc, char *argv[]) { - unsigned period_ns; int retval; lsampl_t routing; struct parsed_options options; @@ -46,10 +45,6 @@ int main(int argc, char *argv[]) comedi_perror(options.filename); exit(-1); } - if(options.freq > 0.) - period_ns = 1e9 / options.freq; - else - period_ns = 0; routing = options.value; printf("Selecting routing %d for channel %d on subdevice %d.\n", routing, options.channel, options.subdevice);