summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-01-18 16:46:32 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-01-20 01:42:07 +0100
commit52ac1544650b016b7301731cd94e20fd08a4bd29 (patch)
treedc3020b5e4363166e3c06fd8951ee8f06f605ece
parentf8f7395d9c6e113e622f52dcaf9d66932c716e77 (diff)
downloadconnman-52ac1544650b016b7301731cd94e20fd08a4bd29.tar.gz
connman-52ac1544650b016b7301731cd94e20fd08a4bd29.tar.bz2
connman-52ac1544650b016b7301731cd94e20fd08a4bd29.zip
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.
-rw-r--r--src/service.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/service.c b/src/service.c
index 109c8b69..9d5820f7 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;