projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccad78f
)
mctp: test: Use NULL macros
author
Ricardo Ribalda
<ribalda@chromium.org>
Fri, 11 Feb 2022 16:42:45 +0000
(17:42 +0100)
committer
Shuah Khan
<skhan@linuxfoundation.org>
Mon, 4 Apr 2022 20:29:25 +0000
(14:29 -0600)
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>
net/mctp/test/route-test.c
patch
|
blob
|
history
diff --git
a/net/mctp/test/route-test.c
b/net/mctp/test/route-test.c
index 61205cf4007465a01c2d7b3def1c413a5666df35..17d9c49000c5648c8c1f809ddd3fca7c42f3c79a 100644
(file)
--- 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);