From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:54:44 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: remove check in apci3120_setup_chan_list() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~295 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a3e518102b4a252dfcfe7d602d6e99e8c77d230;p=pandora-kernel.git staging: comedi: addi_apci_3120: remove check in apci3120_setup_chan_list() The n_chan check is not needed. This value will always be >= 1. Remove the unnecessary check. For aesthetics, rename the function and change it's return type to void. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed