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)
commit07a696a886463a4bb098d8a90ca54356cb270c46
tree789e1f715d9cca1795c58df738bbec9196c7b453
parent228e55617c17e70a441b070eca457bf88ad3da96
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