staging: comedi: cb_das16_cs: cleanup das16cs_ai_rinsn()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 26 Jun 2012 00:17:52 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:35:22 +0000 (15:35 -0700)
commite05b98b6425d46e7a0f77d16499407f6df35427f
treefb3d35146cefa9c2a8ef0be115f91b6a36610358
parentcf2592d06a4e37f98eba17d1abe32af7fe521d19
staging: comedi: cb_das16_cs: cleanup das16cs_ai_rinsn()

Cleanup to analog input read function.

1) Initialize the chan, range, and aref locale variables when
   they are declared.
2) Remove need for the static local variable.
3) Remove the unnecessary cast of inw()'s return value.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_das16_cs.c