]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_pci224: use cfc_bytes_per_scan()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 27 May 2014 17:31:06 +0000 (10:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:28:55 +0000 (14:28 -0700)
commitc900053bc9e0b4f4b2b82a9b941de591e8ee0596
treecae7aa3303f13f9918d620ec4d5812c307fed53a
parent5a533a2f5510961c4a0221b09d1053f93f3f49a6
staging: comedi: amplc_pci224: use cfc_bytes_per_scan()

The cmd->chanlist_len will always be >= 1 in this function. Remove the
unnecessary checks.

Use the comedi_fc helper function to get the 'bytes_per_scan'.

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