network: Remove obsolete service lookup in disconnect
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 18 Oct 2011 13:36:29 +0000 (16:36 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 20 Oct 2011 23:10:03 +0000 (01:10 +0200)
src/network.c

index 50d0492..b58409f 100644 (file)
@@ -1051,13 +1051,10 @@ static gboolean set_connected(gpointer user_data)
                }
 
        } else {
-               struct connman_service *service;
                enum connman_service_state state;
 
                __connman_device_set_network(network->device, NULL);
 
-               service = __connman_service_lookup_from_network(network);
-
                switch (ipv4_method) {
                case CONNMAN_IPCONFIG_METHOD_UNKNOWN:
                case CONNMAN_IPCONFIG_METHOD_OFF: