diff options
author | 2023-11-24 12:15:21 -0500 | |
---|---|---|
committer | 2023-11-27 18:12:07 -0800 | |
commit | 59fef379d453781f0dabfa1f1a1e86e78aee919a (patch) | |
tree | 3ebdf9e4461eb328372dcd26c5c68567392f426b /tools/testing/selftests/net/af_unix | |
parent | selftests/net: fix a char signedness issue (diff) | |
download | linux-59fef379d453781f0dabfa1f1a1e86e78aee919a.tar.gz linux-59fef379d453781f0dabfa1f1a1e86e78aee919a.tar.bz2 linux-59fef379d453781f0dabfa1f1a1e86e78aee919a.zip |
selftests/net: unix: fix unused variable compiler warning
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>
Diffstat (limited to 'tools/testing/selftests/net/af_unix')
-rw-r--r-- | tools/testing/selftests/net/af_unix/diag_uid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/af_unix/diag_uid.c b/tools/testing/selftests/net/af_unix/diag_uid.c index 5b88f7129fea..79a3dd75590e 100644 --- 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; |