staging: comedi: usbdux: use common code path to check the cmd->scan_begin_arg
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 14 Aug 2015 22:23:28 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:16 +0000 (18:24 -0700)
commita0341e5deb05c18c67b786d138799b9a107cdfbf
treee6df2abeacc242965acdd351cb721c656bcba2f0
parent0725b16ece9fe68887144fc2a86b6f297bafa1e2
staging: comedi: usbdux: use common code path to check the cmd->scan_begin_arg

There are currently separate code paths to check the scan_begin_arg based
of the USB speed. Refactor the code to use a common code path and simplify
the code.

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