All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sctp: fix warning when compiling without IPv6
@ 2012-06-18 21:04 Daniel Halperin
  2012-06-19  7:28 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Halperin @ 2012-06-18 21:04 UTC (permalink / raw)
  To: netdev

net/sctp/protocol.c: In function ‘sctp_addr_wq_timeout_handler’:
net/sctp/protocol.c:676: warning: label ‘free_next’ defined but not used

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
---
 net/sctp/protocol.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 5942d27..9c90811 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -673,7 +673,9 @@ void sctp_addr_wq_timeout_handler(unsigned long arg)
 				SCTP_DEBUG_PRINTK("sctp_addrwq_timo_handler: sctp_asconf_mgmt failed\n");
 			sctp_bh_unlock_sock(sk);
 		}
+#if IS_ENABLED(CONFIG_IPV6)
 free_next:
+#endif
 		list_del(&addrw->list);
 		kfree(addrw);
 	}
-- 
1.7.0.4

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

* Re: [PATCH] sctp: fix warning when compiling without IPv6
  2012-06-18 21:04 [PATCH] sctp: fix warning when compiling without IPv6 Daniel Halperin
@ 2012-06-19  7:28 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-06-19  7:28 UTC (permalink / raw)
  To: dhalperi; +Cc: netdev

From: Daniel Halperin <dhalperi@cs.washington.edu>
Date: Mon, 18 Jun 2012 14:04:55 -0700

> net/sctp/protocol.c: In function ‘sctp_addr_wq_timeout_handler’:
> net/sctp/protocol.c:676: warning: label ‘free_next’ defined but not used
> 
> Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>

Applied.

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

end of thread, other threads:[~2012-06-19  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-18 21:04 [PATCH] sctp: fix warning when compiling without IPv6 Daniel Halperin
2012-06-19  7:28 ` 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.