]> 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)
commit34755f28452c3f04fa56b83273a416121c5f679b
tree99c067ee64a848cdc1aaf29a8a9e33e5e4281ef9
parentac0743b5647e17cf2f4d396a31e50d05b01efdcb
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