]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tipc: move code for deleting links from bearer.c to link.c
authorYing Xue <ying.xue@windriver.com>
Thu, 13 Feb 2014 22:29:07 +0000 (17:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:57:05 +0000 (17:57 -0500)
commit8d8439b686f15c23faef4d7d67c4a9f30ce0f2b5
tree4b6232ad9258c86bfcb4da63bd715e92980c2ca0
parente0ca2c30b1e9c1ed8b58bccb95c33d25763a4311
tipc: move code for deleting links from bearer.c to link.c

We break out the code for deleting attached links in the
function bearer_disable(), and define a new function named
tipc_link_delete_list() to do this job.

This commit incurs no functional changes, but makes the code of
function bearer_disable() cleaner. It is also a preparation
for a more important change to the bearer code, in a subsequent
commit in this series.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/link.c
net/tipc/link.h