From 2882e96a5799fbd19daa8cb363e7ee28b907bb64 Mon Sep 17 00:00:00 2001 From: Thierry Boureille Date: Mon, 30 May 2011 11:43:26 +0200 Subject: dhcp: Remove extra dhcp_release call dhcp_release will be called from the hash table remove callback, if the network is found. --- src/dhcp.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/dhcp.c b/src/dhcp.c index 03a2b903..f1e30967 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -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); } -- cgit v1.2.3