From: H Hartley Sweeten Date: Wed, 24 Jul 2013 17:00:45 +0000 (-0700) Subject: staging: comedi: range: tidy up comedi_check_chanlist() X-Git-Tag: v3.12-rc1~183^2~566 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065b09127057fa728c9290d62c2a2e1c4925132b;p=pandora-kernel.git staging: comedi: range: tidy up comedi_check_chanlist() The only difference in the if() and else if() check of the chanlist is the source of the range table length. Consolidate the checks to make the function a bit more concise. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed