ni_tiocmd: Add missing 'break' in ni_tio_input_cmd().
authorIan Abbott <abbotti@mev.co.uk>
Mon, 14 Jan 2013 10:18:03 +0000 (10:18 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 14 Jan 2013 10:18:03 +0000 (10:18 +0000)
In ni_tio_input_cmd() there is a missing 'break' for 'case TRIG_EXT'
which resulted in mite_arm_dma() being called twice.  Probably mostly
harmless.

Thanks to Dan Carpenter <dan dot carpenter at oracle dot com> for
spotting it in the "staging" sources.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/ni_tiocmd.c

index e4cc5c59f0c5b46e24ba8f013df2624397fe9ae8..d3002dfacb7fcf568ea81a794bc49476aa290d9e 100644 (file)
@@ -158,6 +158,7 @@ static int ni_tio_input_cmd(struct ni_gpct *counter, comedi_async * async)
                async->inttrig = NULL;
                mite_dma_arm(counter->mite_chan);
                retval = ni_tio_arm(counter, 1, cmd->start_arg);
+               break;
        case TRIG_OTHER:
                async->inttrig = NULL;
                mite_dma_arm(counter->mite_chan);