From: Alok Barsode Date: Thu, 5 Jan 2012 12:41:12 +0000 (+0200) Subject: technology: There is no need for add_interface to refcount technology. X-Git-Tag: 0.79~218 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdc4d983779e37daef71786d046a9602e5886fa5;p=platform%2Fupstream%2Fconnman.git technology: There is no need for add_interface to refcount technology. --- diff --git a/src/technology.c b/src/technology.c index 0cec893..89cdc84 100644 --- a/src/technology.c +++ b/src/technology.c @@ -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)