From: H Hartley Sweeten Date: Tue, 9 Sep 2014 23:16:03 +0000 (-0700) Subject: staging: comedi: s626: 'ai_sample_count' is always 'stop_arg' X-Git-Tag: fixes-for-v3.18-merge-window~15^2~486 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b9505527e5560297be00094fb4819b0e91e4138;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed