diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-01-10 21:55:22 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-01-22 07:58:12 -0700 |
commit | ed1a72fb0d646c983c85b62144fb1d134a8edb71 (patch) | |
tree | 01f1a2cef2f96b37b8e1b576cd0cd05b4b2cb5f2 /MAINTAINERS | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
kunit: Fix a NULL vs IS_ERR() bug
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: d03c720e03bd ("kunit: Add APIs for managing devices")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions