]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: refactor tipc_sk_timeout() function
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 20 Oct 2017 09:21:32 +0000 (11:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:36:35 +0000 (02:36 +0100)
commit1ab6572be5282c0baf2fd3df177495d87b5a7e3a
tree590c536fadf115aaf7873d3b0ea45b1c199dd7c9
parentcb673d4c593c44eb900494e863fb6fafc7ff4b21
tipc: refactor tipc_sk_timeout() function

The function tipc_sk_timeout() is more complex than necessary, and
even seems to contain an undetected bug. At one of the occurences
where we renew the timer we just order it with (HZ / 20), instead
of (jiffies + HZ / 20);

In this commit we clean up the function.

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/socket.c