summaryrefslogtreecommitdiff
path: root/net/sctp
diff options
context:
space:
mode:
authorDaniel Halperin <dhalperi@cs.washington.edu>2012-06-18 11:04:55 +0000
committerDavid S. Miller <davem@davemloft.net>2012-06-19 00:26:26 -0700
commit39d84a58ad6290a43e6503acc8b54ebb7e4ecc54 (patch)
treea7997ece4815c6614f1bc0e5be19ae53d43a87b7 /net/sctp
parentd189634ecab947c10f6f832258b103d0bbfe73cc (diff)
downloadlinux-3.10-39d84a58ad6290a43e6503acc8b54ebb7e4ecc54.tar.gz
linux-3.10-39d84a58ad6290a43e6503acc8b54ebb7e4ecc54.tar.bz2
linux-3.10-39d84a58ad6290a43e6503acc8b54ebb7e4ecc54.zip
sctp: fix warning when compiling without IPv6
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 5942d27b144..9c90811d113 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);
}