Commit 8b950552 authored by Committed by Greg Kroah-HartmanBrowse files
staging: comedi: s626: 'ai_sample_count' is always 'stop_arg'
When the cmd->stop_src == TRIG_COUNT, the 'ai_sample_count' is the cmd->stop_arg. For a stop_src == TRIG_NONE the 'ai_sample_count' is currently set to 1 but the driver never actually uses the value. Simplify the 'stop_count' initialization by just setting it to the cmd->stop_arg. Signed-off-by: H Hartley Sweeten <email@example.com> Reviewed-by: Ian Abbott <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>