technology: There is no need for add_interface to refcount technology.
authorAlok Barsode <alok.barsode@linux.intel.com>
Thu, 5 Jan 2012 12:41:12 +0000 (14:41 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 9 Jan 2012 15:07:38 +0000 (16:07 +0100)
src/technology.c

index 0cec893..89cdc84 100644 (file)
@@ -714,10 +714,10 @@ void __connman_technology_add_interface(enum connman_service_type type,
                break;
        }
 
-       connman_info("Create interface %s [ %s ]", name,
+       connman_info("Adding interface %s [ %s ]", name,
                                __connman_service_type2string(type));
 
-       technology = technology_get(type);
+       technology = technology_find(type);
 
        if (technology == NULL || technology->driver == NULL
                        || technology->driver->add_interface == NULL)
@@ -757,8 +757,6 @@ void __connman_technology_remove_interface(enum connman_service_type type,
 
        if (technology->driver->remove_interface)
                technology->driver->remove_interface(technology, index);
-
-       technology_put(technology);
 }
 
 int __connman_technology_add_device(struct connman_device *device)