]> git.baikalelectronics.ru Git - kernel.git/commit
inet: split inet_csk_get_port into two functions
authorJosef Bacik <jbacik@fb.com>
Tue, 17 Jan 2017 15:51:05 +0000 (07:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 18:04:29 +0000 (13:04 -0500)
commit1198081e9a49667d2e162536827eb428dddbd683
treedf22cd8d2bbcae0ed5c372d634aa61b38cf77cd6
parent7ee2bf609d3123f6f06ca5d8843c3ff7703c22f5
inet: split inet_csk_get_port into two functions

inet_csk_get_port does two different things, it either scans for an open port,
or it tries to see if the specified port is available for use.  Since these two
operations have different rules and are basically independent lets split them
into two different functions to make them both more readable.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c