summaryrefslogtreecommitdiff
path: root/net/mctp
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2022-02-11 17:42:45 +0100
committerShuah Khan <skhan@linuxfoundation.org>2022-04-04 14:29:25 -0600
commit741c9286ffad332fd0ff1cae01d497ec4b0176e5 (patch)
tree7929d35a62925ef5a260f3a4fcf6457480fd44ee /net/mctp
parentccad78f17f9f2a9acc811f8762aa428644205c9b (diff)
mctp: test: Use NULL macros
Replace the PTR_EQ NULL checks wit the NULL macros. More idiomatic and specific. Acked-by: Daniel Latypov <dlatypov@google.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Acked-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'net/mctp')
-rw-r--r--net/mctp/test/route-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mctp/test/route-test.c b/net/mctp/test/route-test.c
index 61205cf40074..17d9c49000c5 100644
--- a/net/mctp/test/route-test.c
+++ b/net/mctp/test/route-test.c
@@ -361,7 +361,7 @@ static void mctp_test_route_input_sk(struct kunit *test)
} else {
KUNIT_EXPECT_NE(test, rc, 0);
skb2 = skb_recv_datagram(sock->sk, 0, 1, &rc);
- KUNIT_EXPECT_PTR_EQ(test, skb2, NULL);
+ KUNIT_EXPECT_NULL(test, skb2);
}
__mctp_route_test_fini(test, dev, rt, sock);
@@ -431,7 +431,7 @@ static void mctp_test_route_input_sk_reasm(struct kunit *test)
skb_free_datagram(sock->sk, skb2);
} else {
- KUNIT_EXPECT_PTR_EQ(test, skb2, NULL);
+ KUNIT_EXPECT_NULL(test, skb2);
}
__mctp_route_test_fini(test, dev, rt, sock);