]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/net: unix: fix unused variable compiler warning
authorWillem de Bruijn <willemb@google.com>
Fri, 24 Nov 2023 17:15:21 +0000 (12:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:22 +0000 (08:52 +0100)
commita989f76f2218bf751664f7866bb30c754fc17393
tree3ec9dc710e1c40621941a24fc3fc58f3e09a702e
parentaea066ac9e9a4cf246cf8d63a160fc637ab38244
selftests/net: unix: fix unused variable compiler warning

[ Upstream commit 59fef379d453781f0dabfa1f1a1e86e78aee919a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/af_unix/diag_uid.c