]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: tests: Correct unittest_fptr
authorIan Abbott <abbotti@mev.co.uk>
Wed, 7 Apr 2021 14:01:42 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 15:09:55 +0000 (17:09 +0200)
commit6d273851d32fda7f3614a01ae038db210f94d8ba
tree789e1f715d9cca1795c58df738bbec9196c7b453
parent7a741a32b710533531499db06312ed100ac87d91
staging: comedi: tests: Correct unittest_fptr

The definition of the `unittest_fptr` function pointer type has the
wrong function return type `void *` instead of `void`.  The problem is
hidden by a bunch of unnecessary type-casts.  Fix the type definition
and remove the type-casts.

Cc: Spencer E. Olson <olsonse@umich.edu>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20210407140142.447250-6-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/tests/example_test.c
drivers/staging/comedi/drivers/tests/ni_routes_test.c
drivers/staging/comedi/drivers/tests/unittest.h