staging: comedi: rti802: tidy up rti802_ao_insn_read()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 22:48:38 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:20:09 +0000 (14:20 -0700)
commitc0c6ae260a44de5b3bb9996b0ad82cd72f38427b
treee40bb22a4884f6f9bc31f1bd1854191c7c877056
parentdf8f09bb44d03f8573715ea30d0c3ce1b3627244
staging: comedi: rti802: tidy up rti802_ao_insn_read()

To clarify the function a bit, add a local variable for the 'chan'
that is being read and change the final return to 'insn->n'.

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