diff options
author | Dan Carpenter <[email protected]> | 2024-01-10 21:55:14 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2024-01-22 07:58:22 -0700 |
commit | 083974ebb8fc65978d6cacd1bcfe9158d6234b98 (patch) | |
tree | 1ca947823ddefd78d72cd5f28da1518cfdd8d02e /tools/perf/scripts/python/libxed.py | |
parent | ed1a72fb0d646c983c85b62144fb1d134a8edb71 (diff) |
kunit: device: Fix a NULL vs IS_ERR() check in init()
The root_device_register() function does not return NULL, it returns
error pointers. Fix the check to match.
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/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions