summaryrefslogtreecommitdiffstats
path: root/lib/cmdline_kunit.c
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2021-05-13 21:32:04 +0200
committerShuah Khan <skhan@linuxfoundation.org>2021-06-24 00:41:41 +0200
commit255ede3b129041eae4edfdce121cedbfabfdd30e (patch)
treefa8687ee3ba177399794056618c56b7258ddc870 /lib/cmdline_kunit.c
parentkernel/sysctl-test: Remove some casts which are no-longer required (diff)
downloadlinux-255ede3b129041eae4edfdce121cedbfabfdd30e.tar.xz
linux-255ede3b129041eae4edfdce121cedbfabfdd30e.zip
lib/cmdline_kunit: Remove a cast which are no-longer required
With some of the stricter type checking in KUnit's EXPECT macros removed, a cast in cmdline_kunit is no longer required. Remove the unnecessary cast, using NULL instead of (int *) to make it clearer. Signed-off-by: David Gow <davidgow@google.com> Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/cmdline_kunit.c')
-rw-r--r--lib/cmdline_kunit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmdline_kunit.c b/lib/cmdline_kunit.c
index 018bfc8113c4..a72a2c16066e 100644
--- a/lib/cmdline_kunit.c
+++ b/lib/cmdline_kunit.c
@@ -124,7 +124,7 @@ static void cmdline_do_one_range_test(struct kunit *test, const char *in,
n, e[0], r[0]);
p = memchr_inv(&r[1], 0, sizeof(r) - sizeof(r[0]));
- KUNIT_EXPECT_PTR_EQ_MSG(test, p, (int *)0, "in test %u at %u out of bound", n, p - r);
+ KUNIT_EXPECT_PTR_EQ_MSG(test, p, NULL, "in test %u at %u out of bound", n, p - r);
}
static void cmdline_test_range(struct kunit *test)