summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-28 17:44:41 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-30 10:28:33 +0200
commit38d0ab199481b3d2fd699000016020af70ea54e8 (patch)
tree3c147a80550af47a85e794cd179edc252e46a51a /src/network.c
parent672a2f2a0e3022988764a89c4a626cfd7c39ecda (diff)
downloadconnman-38d0ab199481b3d2fd699000016020af70ea54e8.tar.gz
connman-38d0ab199481b3d2fd699000016020af70ea54e8.tar.bz2
connman-38d0ab199481b3d2fd699000016020af70ea54e8.zip
network: Allow more than one network driver register the same type
Allowing more than one network driver to register the same network type requires the network driver to properly identify which networks belong to it in the network driver probe function.
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/network.c b/src/network.c
index 0d95af88..42158337 100644
--- a/src/network.c
+++ b/src/network.c
@@ -905,18 +905,8 @@ static gint compare_priority(gconstpointer a, gconstpointer b)
*/
int connman_network_driver_register(struct connman_network_driver *driver)
{
- GSList *list;
-
DBG("driver %p name %s", driver, driver->name);
- for (list = driver_list; list; list = list->next) {
- struct connman_network_driver *tmp = list->data;
-
- if (tmp->type == driver->type)
- return -EALREADY;
-
- }
-
driver_list = g_slist_insert_sorted(driver_list, driver,
compare_priority);