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)
commit440d8963cd590ec9387d76a36e60c02da9ed944d
tree7d1135b020321fd3bd06f9bd6dbc1837380858f8
parent9073fb8be3ee6f89492b8ea8f6d3902913a9fc91
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