summaryrefslogtreecommitdiffstats
path: root/lib/kunit/kunit-test.c
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2022-02-11 17:42:42 +0100
committerShuah Khan <skhan@linuxfoundation.org>2022-04-04 14:29:08 -0600
commitde82c15dc0a2d007b0aa02b832eef926d7135eb7 (patch)
tree1835b65d914f400b3489d66a02006e191a5d077a /lib/kunit/kunit-test.c
parentcaae9458db3aef14b96921cf02c6093340350c4a (diff)
downloadlinux-de82c15dc0a2d007b0aa02b832eef926d7135eb7.tar.gz
linux-de82c15dc0a2d007b0aa02b832eef926d7135eb7.tar.bz2
linux-de82c15dc0a2d007b0aa02b832eef926d7135eb7.zip
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>
Diffstat (limited to 'lib/kunit/kunit-test.c')
-rw-r--r--lib/kunit/kunit-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kunit/kunit-test.c b/lib/kunit/kunit-test.c
index 555601d17f79..8e2fe083a549 100644
--- a/lib/kunit/kunit-test.c
+++ b/lib/kunit/kunit-test.c
@@ -435,7 +435,7 @@ static void kunit_log_test(struct kunit *test)
KUNIT_EXPECT_NOT_ERR_OR_NULL(test,
strstr(suite.log, "along with this."));
#else
- KUNIT_EXPECT_PTR_EQ(test, test->log, (char *)NULL);
+ KUNIT_EXPECT_NULL(test, test->log);
#endif
}