dhcp: Remove extra dhcp_release call
authorThierry Boureille <thierry.boureille@gmail.com>
Mon, 30 May 2011 09:43:26 +0000 (11:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 31 May 2011 19:02:27 +0000 (21:02 +0200)
dhcp_release will be called from the hash table remove callback, if the
network is found.

src/dhcp.c

index 03a2b90..f1e3096 100644 (file)
@@ -438,16 +438,8 @@ int __connman_dhcp_start(struct connman_network *network, dhcp_cb callback)
 
 void __connman_dhcp_stop(struct connman_network *network)
 {
-       struct connman_dhcp *dhcp;
-
        DBG("");
 
-       dhcp = g_hash_table_lookup(network_table, network);
-       if (dhcp == NULL)
-               return;
-
-       dhcp_release(dhcp);
-
        g_hash_table_remove(network_table, network);
 }