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)
commit0d5fcebf3c370eb27f9a0e8db454625e73cd1cb4
tree590c536fadf115aaf7873d3b0ea45b1c199dd7c9
parent36341de257a127f3e73fdfb758e017e3a8548fb0
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