From: Ian Abbott Date: Mon, 14 Jan 2013 10:18:03 +0000 (+0000) Subject: ni_tiocmd: Add missing 'break' in ni_tio_input_cmd(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e00f5f7e662f65ef722b90a69a1cd010472d0f5a;p=comedi.git ni_tiocmd: Add missing 'break' in ni_tio_input_cmd(). 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 for spotting it in the "staging" sources. Signed-off-by: Ian Abbott --- diff --git a/comedi/drivers/ni_tiocmd.c b/comedi/drivers/ni_tiocmd.c index e4cc5c59..d3002dfa 100644 --- a/comedi/drivers/ni_tiocmd.c +++ b/comedi/drivers/ni_tiocmd.c @@ -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);