Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The kunit_device_register() function doesn't return NULL, it returns error pointers. Change the KUNIT_ASSERT_NOT_NULL() to check for ERR_OR_NULL(). Fixes: d03c720 ("kunit: Add APIs for managing devices") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Rae Moar <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
- Loading branch information