]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0e2ec9d2c2a2880e1b015b1655ab9aa287e256c
tree3ac8b5abea8f978e269793df3578835de5b0d5a0
parentfd2b65bc6a3414f3533531e5d29fd289a90f380c
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