diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2022-02-11 17:42:41 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-04-04 14:29:02 -0600 |
commit | caae9458db3aef14b96921cf02c6093340350c4a (patch) | |
tree | 94afb63d6b917218c3059b84f3f01bf376b72888 /net/sched | |
parent | aa1c05558e71422564a664fc4cafbf5999f1de0f (diff) |
kunit: Introduce _NULL and _NOT_NULL macros
Today, when we want to check if a pointer is NULL and not ERR we have
two options:
KUNIT_EXPECT_TRUE(test, ptr == NULL);
or
KUNIT_EXPECT_PTR_NE(test, ptr, (struct mystruct *)NULL);
Create a new set of macros that take care of NULL checks.
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions