]> 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)
commitd9b44835ef82dacb6a05bab36943e4dd3d9c25d7
tree590c536fadf115aaf7873d3b0ea45b1c199dd7c9
parent7162c98fc9d7de3a51d11316a1758cd6151ee4dd
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