summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-05 16:48:25 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-05 16:48:25 (GMT)
commit109a5de8db90cb59f885bfda734728179fcd8d8b (patch)
tree266e5bc07bf79b9ada85e662e3219b4bf613ad68
parente30c5682e2499912dd97444e6f4e3f098d89eab5 (diff)
downloadconnman-109a5de8db90cb59f885bfda734728179fcd8d8b.zip
connman-109a5de8db90cb59f885bfda734728179fcd8d8b.tar.gz
connman-109a5de8db90cb59f885bfda734728179fcd8d8b.tar.bz2
Remove useless provider_free routine
-rw-r--r--src/provider.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/provider.c b/src/provider.c
index 1753f2f..a17cdd0 100644
--- a/src/provider.c
+++ b/src/provider.c
@@ -319,20 +319,6 @@ int connman_provider_set_state(struct connman_provider *provider,
return -EINVAL;
}
-static void provider_free(gpointer user_data)
-{
- struct connman_provider *provider = user_data;
-
- DBG("provider %p", provider);
-
- g_free(provider->name);
- g_free(provider->type);
- g_free(provider->domain);
- g_free(provider->identifier);
- g_free(provider->dns);
- __connman_service_put(provider->vpn_service);
-}
-
static void unregister_provider(gpointer data)
{
struct connman_provider *provider = data;
@@ -351,7 +337,12 @@ static void provider_destruct(struct connman_element *element)
DBG("provider %p", provider);
- provider_free(provider);
+ g_free(provider->name);
+ g_free(provider->type);
+ g_free(provider->domain);
+ g_free(provider->identifier);
+ g_free(provider->dns);
+ __connman_service_put(provider->vpn_service);
}
static void __connman_provider_initialize(struct connman_provider *provider)