diff mbox

sctp: fix warning when compiling without IPv6

Message ID B7062EEE-046D-4435-B5FC-54FF3F763645@cs.washington.edu
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Daniel Halperin June 18, 2012, 9:04 p.m. UTC
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(-)

Comments

David Miller June 19, 2012, 7:28 a.m. UTC | #1
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.
diff mbox

Patch

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);
 	}