Skip to content

Commit 59fef37

Browse files
wdebruijkuba-moo
authored andcommitted
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: ac01136 ("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>
1 parent 7b29828 commit 59fef37

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

tools/testing/selftests/net/af_unix/diag_uid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ void receive_response(struct __test_metadata *_metadata,
148148
.msg_iov = &iov,
149149
.msg_iovlen = 1
150150
};
151-
struct unix_diag_req *udr;
152151
struct nlmsghdr *nlh;
153152
int ret;
154153

0 commit comments

Comments
 (0)