staging: comedi: amplc_dio200_common: remove unnecessary 'counter_number' checks
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 23 Feb 2015 21:57:59 +0000 (14:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 02:51:52 +0000 (18:51 -0800)
commited023d529ce44c0e3c41101a344d80259bd96443
treefcd5af2ec45f877f9e57939a6a1789a92a0f13dc
parentfdb7c3ece29fc4d73e5994af6a58b4e3d55d105c
staging: comedi: amplc_dio200_common: remove unnecessary 'counter_number' checks

The 'counter_number' in these functions is the comedi channel number from the
chanspec. The comedi core validates the chanspec before calling the driver
functions. Remove the unnecessary checks.

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