提交 741c9286 编写于 作者: R Ricardo Ribalda 提交者: Shuah Khan

mctp: test: Use NULL macros

Replace the PTR_EQ NULL checks wit the NULL macros. More idiomatic and
specific.
Acked-by: NDaniel Latypov <dlatypov@google.com>
Signed-off-by: NRicardo Ribalda <ribalda@chromium.org>
Acked-by: NBrendan Higgins <brendanhiggins@google.com>
Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
上级 ccad78f1
...@@ -361,7 +361,7 @@ static void mctp_test_route_input_sk(struct kunit *test) ...@@ -361,7 +361,7 @@ static void mctp_test_route_input_sk(struct kunit *test)
} else { } else {
KUNIT_EXPECT_NE(test, rc, 0); KUNIT_EXPECT_NE(test, rc, 0);
skb2 = skb_recv_datagram(sock->sk, 0, 1, &rc); 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); __mctp_route_test_fini(test, dev, rt, sock);
...@@ -431,7 +431,7 @@ static void mctp_test_route_input_sk_reasm(struct kunit *test) ...@@ -431,7 +431,7 @@ static void mctp_test_route_input_sk_reasm(struct kunit *test)
skb_free_datagram(sock->sk, skb2); skb_free_datagram(sock->sk, skb2);
} else { } else {
KUNIT_EXPECT_PTR_EQ(test, skb2, NULL); KUNIT_EXPECT_NULL(test, skb2);
} }
__mctp_route_test_fini(test, dev, rt, sock); __mctp_route_test_fini(test, dev, rt, sock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册