]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor function tipc_link_timeout()
authorJon Paul Maloy <jon.maloy@ericsson.com>
Fri, 15 Apr 2016 17:33:05 +0000 (13:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 20:09:06 +0000 (16:09 -0400)
commit8c684cd8bbcacd7a07099e658168bddc5140837c
tree99c067ee64a848cdc1aaf29a8a9e33e5e4281ef9
parent3a365fc1dd38e9a3412ecb0f34d21545fd827519
tipc: refactor function tipc_link_timeout()

The function tipc_link_timeout() is unnecessary complex, and can
easily be made more readable.

We do that with this commit. The only functional change is that we
remove a redundant test for whether the broadcast link is up or not.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c