diff options
author | Thierry Boureille <thierry.boureille@gmail.com> | 2011-05-30 11:43:26 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-31 21:02:27 +0200 |
commit | 2882e96a5799fbd19daa8cb363e7ee28b907bb64 (patch) | |
tree | 511ce3029ae3f87795b0041b6717caedc29e00d3 /src/dhcp.c | |
parent | f11bd93cca997062d0a8a4f149a6c79c2b1a30fe (diff) | |
download | connman-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.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); } |