aboutsummaryrefslogtreecommitdiff
path: root/lib/bch.c
diff options
context:
space:
mode:
authorGravatar Ricardo Ribalda <ribalda@chromium.org> 2022-02-11 17:42:41 +0100
committerGravatar Shuah Khan <skhan@linuxfoundation.org> 2022-04-04 14:29:02 -0600
commitcaae9458db3aef14b96921cf02c6093340350c4a (patch)
tree94afb63d6b917218c3059b84f3f01bf376b72888 /lib/bch.c
parentkunit: tool: simplify code since build_dir can't be None (diff)
downloadlinux-caae9458db3aef14b96921cf02c6093340350c4a.tar.gz
linux-caae9458db3aef14b96921cf02c6093340350c4a.tar.bz2
linux-caae9458db3aef14b96921cf02c6093340350c4a.zip
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 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions