projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b29828
)
selftests/net: unix: fix unused variable compiler warning
author
Willem de Bruijn
<willemb@google.com>
Fri, 24 Nov 2023 17:15:21 +0000
(12:15 -0500)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 28 Nov 2023 02:12:07 +0000
(18:12 -0800)
Remove an unused variable.
diag_uid.c:151:24:
error: unused variable 'udr'
[-Werror,-Wunused-variable]
Fixes: ac011361bd4f ("af_unix: Add test for sock_diag and UDIAG_SHOW_UID.")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link:
https://lore.kernel.org/r/20231124171645.1011043-4-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/af_unix/diag_uid.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/net/af_unix/diag_uid.c
b/tools/testing/selftests/net/af_unix/diag_uid.c
index 5b88f7129fea4428575fbec448b9272854cbfbd6..79a3dd75590e89226b128a85c47f62e672535562 100644
(file)
--- a/
tools/testing/selftests/net/af_unix/diag_uid.c
+++ b/
tools/testing/selftests/net/af_unix/diag_uid.c
@@
-148,7
+148,6
@@
void receive_response(struct __test_metadata *_metadata,
.msg_iov = &iov,
.msg_iovlen = 1
};
- struct unix_diag_req *udr;
struct nlmsghdr *nlh;
int ret;