staging: comedi: cb_pcidas: cleanup cb_pcidas_ao_nofifo_winsn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 01:10:59 +0000 (18:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:23:55 +0000 (15:23 -0700)
commit7671896c4f7f66116798d7314a03995eddac4134
treec494e983a839560f20f6f9e53f4782fe137fd033
parentb78332daf47b624bef6220f1acf64ee49d38c1ad
staging: comedi: cb_pcidas: cleanup cb_pcidas_ao_nofifo_winsn()

Create local variables for the channel and range in order to
cleanup to mask/set of the ao_control_bits.

Remove the extra space in all the comments.

Return the number of data parameters used (insn->n) to indicate
success instead of the open coded '1'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas.c