All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] selftests: net: Clean up an unused variable
@ 2018-10-05  8:19 Jakub Sitnicki
  2018-10-05 21:53 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Sitnicki @ 2018-10-05  8:19 UTC (permalink / raw)
  To: netdev

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>
---
 tools/testing/selftests/net/ip_defrag.c | 1 -
 1 file changed, 1 deletion(-)

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;
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] selftests: net: Clean up an unused variable
  2018-10-05  8:19 [PATCH net-next] selftests: net: Clean up an unused variable Jakub Sitnicki
@ 2018-10-05 21:53 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-10-05 21:53 UTC (permalink / raw)
  To: jakub; +Cc: netdev

From: Jakub Sitnicki <jakub@cloudflare.com>
Date: Fri,  5 Oct 2018 10:19:57 +0200

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-06  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05  8:19 [PATCH net-next] selftests: net: Clean up an unused variable Jakub Sitnicki
2018-10-05 21:53 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.