]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200_common: 'stopcount' is always 'stop_arg'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 23:15:36 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:35:20 +0000 (14:35 -0700)
commit840ac8814ab5c40611274c73b54661862615712f
treec9cc15aa93d706bfc8337a29a7beda3ccc892297
parented02e1b1711b3b51002492e5973fae2b63855f9d
staging: comedi: amplc_dio200_common: 'stopcount' is always 'stop_arg'

When the cmd->stop_src == TRIG_COUNT, the 'stopcount' is the cmd->stop_arg. When
the stop_src == TRIG_NONE the 'stopcount' is 0, which is also the cmd->stop_arg.

Simplify the 'stopcount' initialization.

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/amplc_dio200_common.c