]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci9118: remove sanity checks in pci9118_calc_divisors()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 20:05:47 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:34:25 +0000 (14:34 -0700)
commitbdc459cf81645ee7467722f7bea7336b3421fe73
tree5f5f2ef1a602bca62592558e21ef4f89112e9627
parent5e88a66311d151dd1903217a88312cf17d81a392
staging: comedi: adl_pci9118: remove sanity checks in pci9118_calc_divisors()

The 'tim2' parameter to this function is actually the cmd->convert_arg which
was validated in the (*do_cmdtest) as:

err |= cfc_check_trigger_arg_min(&cmd->convert_arg,
 devprivriv->ai_ns_min);

The sanity checks in this function are just repeating that validation. The
'min_pacer' sanity check is simply not needed.

Remove these 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/adl_pci9118.c