]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: pcmmio: use comedi_cmd pointer
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 27 May 2014 17:30:56 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:28:54 +0000 (14:28 -0700)
commitae5bf4845c2ae32abc9540f0bb381081dac30838
treeb791a6b704ecc4c7ef483c3923d0b4036195ad40
parentbb20d17a233dd8a74ceca7b2e038fcf890da0c02
staging: comedi: pcmmio: use comedi_cmd pointer

Use a local variable to access the comedi_cmd as a pointer instead
of getting to from the comedi_subdevice pointer.

Remove the unnecessary local variables used for the cmd->chanlist_len.

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