diff options
author | Dan Carpenter <[email protected]> | 2024-01-10 21:55:22 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2024-01-22 07:58:12 -0700 |
commit | ed1a72fb0d646c983c85b62144fb1d134a8edb71 (patch) | |
tree | 01f1a2cef2f96b37b8e1b576cd0cd05b4b2cb5f2 /tools/perf/util/scripting-engines/trace-event-python.c | |
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 <[email protected]>
Reviewed-by: Rae Moar <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions