]> 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)
commit18a5b0d1177edbadd7f2b271c147424341060394
treedf22cd8d2bbcae0ed5c372d634aa61b38cf77cd6
parent3f994c3ca81aca42cc687fe9334067ea62a890f1
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