]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: comedi_fc: tidy up cfc_bytes_per_scan()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Sat, 8 Mar 2014 00:31:23 +0000 (17:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 20:55:53 +0000 (13:55 -0700)
commit68ef50f6cb39b78e0e3e5007d16d644c2f18acab
tree7a130a566366519864ff2208686852647cdb6cc8
parenta3065bc9b420dacd54d333a35701adea104842e8
staging: comedi: comedi_fc: tidy up cfc_bytes_per_scan()

This function returns the total number of bytes for a full scan of
an async command chanlist. The returned value is an unsigned int.

Change all the local variables to unsigned int and use a local
variable for the s->async->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/comedi_fc.h