summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJakub Sitnicki <jakub@cloudflare.com>2018-10-05 10:19:57 +0200
committerDavid S. Miller <davem@davemloft.net>2018-10-05 14:53:44 -0700
commit6f8474922b443fd4a89a5dd5b891a3c6a144b9c7 (patch)
treec4d1e9a2db87c292856b847630f91437f3b4112e /tools
parent4c2d39bd40c1f34975bec070a8e43fa573a9c327 (diff)
selftests: net: Clean up an unused variable
Address compiler warning: ip_defrag.c: In function 'send_udp_frags': ip_defrag.c:206:16: warning: unused variable 'udphdr' [-Wunused-variable] struct udphdr udphdr; ^~~~~~ Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/net/ip_defrag.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/ip_defrag.c b/tools/testing/selftests/net/ip_defrag.c
index 2366dc6bce71..61ae2782388e 100644
--- a/tools/testing/selftests/net/ip_defrag.c
+++ b/tools/testing/selftests/net/ip_defrag.c
@@ -203,7 +203,6 @@ static void send_udp_frags(int fd_raw, struct sockaddr *addr,
{
struct ip *iphdr = (struct ip *)ip_frame;
struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame;
- struct udphdr udphdr;
int res;
int offset;
int frag_len;