Commit 6f847492 authored by Jakub Sitnicki's avatar Jakub Sitnicki Committed by David S. Miller
Browse files

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: default avatarJakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c2d39bd
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -203,7 +203,6 @@ static void send_udp_frags(int fd_raw, struct sockaddr *addr,
{
{
	struct ip *iphdr = (struct ip *)ip_frame;
	struct ip *iphdr = (struct ip *)ip_frame;
	struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame;
	struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame;
	struct udphdr udphdr;
	int res;
	int res;
	int offset;
	int offset;
	int frag_len;
	int frag_len;