]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adv_pci1710: cmd->scan_begin_src can only be TRIG_FOLLOW
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 23 Apr 2014 23:06:58 +0000 (16:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 22:07:40 +0000 (15:07 -0700)
commit2cb4ac8fcbc9b111b4802c659e5d3f9846827703
treeebf296b457fd7cabe33fb8d1ff53da6323a8cad7
parent64c0f4f2434a8c5cd811f9d50971538b95c556c4
staging: comedi: adv_pci1710: cmd->scan_begin_src can only be TRIG_FOLLOW

In Step 1 of the (*do_cmdtest), the cmd->scan_begin_src is checked to
only allow TRIG_FOLLOW. The (*do_cmd) does not need to recheck this.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1710.c