staging: comedi: range: tidy up comedi_check_chanlist()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 24 Jul 2013 17:00:45 +0000 (10:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 20:20:17 +0000 (13:20 -0700)
commit065b09127057fa728c9290d62c2a2e1c4925132b
tree3ac8b5abea8f978e269793df3578835de5b0d5a0
parenteee7d9e9ef711abda2482af2d6b15d76e34b8db5
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 <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/range.c