From: H Hartley Sweeten Date: Tue, 9 Sep 2014 20:05:47 +0000 (-0700) Subject: staging: comedi: adl_pci9118: remove sanity checks in pci9118_calc_divisors() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~523 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d397fd5886090f9462098432bd9523fd8f3df37b;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed