summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorThierry Boureille <thierry.boureille@gmail.com>2011-05-30 11:43:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-05-31 21:02:27 +0200
commit2882e96a5799fbd19daa8cb363e7ee28b907bb64 (patch)
tree511ce3029ae3f87795b0041b6717caedc29e00d3 /src/dhcp.c
parentf11bd93cca997062d0a8a4f149a6c79c2b1a30fe (diff)
downloadconnman-2882e96a5799fbd19daa8cb363e7ee28b907bb64.tar.gz
connman-2882e96a5799fbd19daa8cb363e7ee28b907bb64.tar.bz2
connman-2882e96a5799fbd19daa8cb363e7ee28b907bb64.zip
dhcp: Remove extra dhcp_release call
dhcp_release will be called from the hash table remove callback, if the network is found.
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c8
1 files changed, 0 insertions, 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);
}