From: H Hartley Sweeten Date: Tue, 27 May 2014 17:31:06 +0000 (-0700) Subject: staging: comedi: amplc_pci224: use cfc_bytes_per_scan() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a51030995157dc03142ae6f9e17741b0224beb;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed