Skip to content

Commit

Permalink
selftests: net: Clean up an unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Sitnicki authored and David S. Miller committed Oct 5, 2018
1 parent 4c2d39b commit 6f84749
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/testing/selftests/net/ip_defrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f84749

Please sign in to comment.