]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: clean up link creation
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 30 Jul 2015 22:24:26 +0000 (18:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 00:25:15 +0000 (17:25 -0700)
commit66b6df245c78876b51e761dbef0c3cf4a2f8e8f9
tree7d1135b020321fd3bd06f9bd6dbc1837380858f8
parent30b381fdd70ff774875156fd8fee4e7bcc412efe
tipc: clean up link creation

We simplify the link creation function tipc_link_create() and the way
the link struct it is connected to the node struct. In particular, we
remove the duplicate initialization of some fields which are anyway set
in tipc_link_reset().

Tested-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/core.h
net/tipc/link.c
net/tipc/link.h
net/tipc/node.c