From 52ac1544650b016b7301731cd94e20fd08a4bd29 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 18 Jan 2012 16:46:32 +0200 Subject: [PATCH] service: Cleanup of already removed functionality The commit 87318d768c9bf6842ec4dc74f03220ee8b6a9c72 removed code from service but left the network_created flag intact. This patch removes the useless flag. --- src/service.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/service.c b/src/service.c index 109c8b6..9d5820f 100644 --- a/src/service.c +++ b/src/service.c @@ -79,7 +79,6 @@ struct connman_service { char *passphrase; char *agent_passphrase; connman_bool_t roaming; - connman_bool_t network_created; struct connman_ipconfig *ipconfig_ipv4; struct connman_ipconfig *ipconfig_ipv6; struct connman_network *network; @@ -3387,8 +3386,7 @@ static void service_free(gpointer user_data) if (service->network != NULL) { __connman_network_disconnect(service->network); - if (service->network_created == TRUE) - connman_network_unref(service->network); + connman_network_unref(service->network); } if (service->provider != NULL) @@ -3485,8 +3483,6 @@ static void service_initialize(struct connman_service *service) service->refcount = 1; service->session_usage_count = 0; - service->network_created = FALSE; - service->type = CONNMAN_SERVICE_TYPE_UNKNOWN; service->security = CONNMAN_SERVICE_SECURITY_UNKNOWN; -- 2.7.4