diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 02:18:38 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-17 19:34:28 +0100 |
commit | 6c0b2e570c56b79ccb4e0905e3d2288fc55443e2 (patch) | |
tree | 4aebbcbe745244fad732c751be9c969b508b96ed /src/mtp_layer3.c | |
parent | ea247c1d0a30362afd4602acdcd595b4afd616ec (diff) |
mtp: Make the mtp_link point to a specific type of link
We might want to be able to change the type of a link at
runtime. Decouple the link and the actual type of the link.
Diffstat (limited to 'src/mtp_layer3.c')
-rw-r--r-- | src/mtp_layer3.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c index 83c8d63..0ef416c 100644 --- a/src/mtp_layer3.c +++ b/src/mtp_layer3.c @@ -582,18 +582,6 @@ void mtp_link_set_init_slc(struct mtp_link_set *set) } } -int mtp_link_set_add_link(struct mtp_link_set *set, struct mtp_link *lnk) -{ - lnk->set = set; - lnk->link_no = set->nr_links++; - if (mtp_link_init(lnk) != 0) - return -1; - - llist_add_tail(&lnk->entry, &set->links); - mtp_link_set_init_slc(set); - return 0; -} - struct mtp_link_set *mtp_link_set_alloc(struct bsc_data *bsc) { struct mtp_link_set *link; |