[PATCH v2] staging: comedi: range: tidy up comedi_check_chanlist()
Ian Abbott
abbotti at mev.co.uk
Thu Jul 25 09:35:26 UTC 2013
On 2013-07-24 18:00, H Hartley Sweeten wrote:
> 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 at visionengravers.com>
> Cc: Ian Abbott <abbotti at mev.co.uk>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> ---
> v2: fix an issue when the range_table_list is used for the range_len
>
> drivers/staging/comedi/range.c | 43 ++++++++++++++++++++----------------------
> 1 file changed, 20 insertions(+), 23 deletions(-)
Reviewed-by: Ian Abbott <abbotti at mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti at mev.co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
More information about the devel
mailing list