]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
staging: comedi: das800: remove extra divisor calculation call
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 23 Apr 2013 01:36:11 +0000 (18:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:41:51 +0000 (10:41 -0700)
commit264601c231c9c9dec3da2c665c0b9cbec11d8c9e
tree7f7fccaaf0224c15ad965d59b07d6d51e72434b2
parent57d1ebf795a3cdde46ee30e4ad77b4ae02fa1569
staging: comedi: das800: remove extra divisor calculation call

The comedi core always calls the (*do_cmdtest) function before it
calls the (*do_cmd) function. The divisors were already calculated
in das800_ai_do_cmdtest(), it is not necessary to calculate them
again in das800_ai_do_cmd().

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