]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sctp: simplify sctp listening code
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 12 Mar 2009 09:49:17 +0000 (09:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 18:37:56 +0000 (11:37 -0700)
commit5e8f3f703ae4e4af65e2695e486b3cd198328863
tree1927b01e884dbd5ddb1d4586ac08e4a14e0601eb
parent3bcb1255bae39cae1b4d2660f2b5a6ab2f404c10
sctp: simplify sctp listening code

sctp_inet_listen() call is split between UDP and TCP style.  Looking
at the code, the two functions are almost the same and can be
merged into a single helper.  This also fixes a bug that was
fixed in the UDP function, but missed in the TCP function.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c