OSDN Git Service

selftests: net: Clean up an unused variable
authorJakub Sitnicki <jakub@cloudflare.com>
Fri, 5 Oct 2018 08:19:57 +0000 (10:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 21:53:44 +0000 (14:53 -0700)
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>
tools/testing/selftests/net/ip_defrag.c

index 2366dc6..61ae278 100644 (file)
@@ -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;