mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
kunit: use NULL macros
Replace the NULL checks with the more specific and idiomatic NULL macros. 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>
This commit is contained in:
committed by
Shuah Khan
parent
caae9458db
commit
de82c15dc0
@@ -91,6 +91,8 @@ static void example_all_expect_macros_test(struct kunit *test)
|
||||
KUNIT_EXPECT_NOT_ERR_OR_NULL(test, test);
|
||||
KUNIT_EXPECT_PTR_EQ(test, NULL, NULL);
|
||||
KUNIT_EXPECT_PTR_NE(test, test, NULL);
|
||||
KUNIT_EXPECT_NULL(test, NULL);
|
||||
KUNIT_EXPECT_NOT_NULL(test, test);
|
||||
|
||||
/* String assertions */
|
||||
KUNIT_EXPECT_STREQ(test, "hi", "hi");
|
||||
|
||||
Reference in New Issue
Block a user