Skip to content

Commit

Permalink
sctp: fix missing label when PROC_FS=n
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
rddunlap authored and davem330 committed Nov 27, 2008
1 parent 40a914f commit 157653c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,12 @@ static __init int sctp_proc_init(void)
}
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.
Expand Down

0 comments on commit 157653c

Please sign in to comment.