From: Daniel Halperin Date: Mon, 18 Jun 2012 11:04:55 +0000 (+0000) Subject: sctp: fix warning when compiling without IPv6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=39d84a58ad6290a43e6503acc8b54ebb7e4ecc54;p=linux-beck.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 5942d27b1444..9c90811d1134 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); }