sctp: fix missing label when PROC_FS=n
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 27 Nov 2008 23:30:53 +0000 (15:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Nov 2008 23:30:53 +0000 (15:30 -0800)
Fix missing label when CONFIG_PROC_FS=n:

net/sctp/protocol.c: In function 'sctp_proc_init':
net/sctp/protocol.c:106: error: label 'out_nomem' used but not defined
make[3]: *** [net/sctp/protocol.o] Error 1

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c

index d5ea232c9126799654d23b49aefc77a09763adc4..b78e3be6901398f7a62b76a291fb8954341aacc0 100644 (file)
@@ -139,11 +139,12 @@ out_snmp_proc_init:
        }
 out_free_percpu:
        percpu_counter_destroy(&sctp_sockets_allocated);
-out_nomem:
-       return -ENOMEM;
 #else
        return 0;
 #endif /* CONFIG_PROC_FS */
+
+out_nomem:
+       return -ENOMEM;
 }
 
 /* Clean up the proc fs entry for the SCTP protocol.