projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f11bd93
)
dhcp: Remove extra dhcp_release call
author
Thierry Boureille
<thierry.boureille@gmail.com>
Mon, 30 May 2011 09:43:26 +0000
(11:43 +0200)
committer
Samuel 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
patch
|
blob
|
history
diff --git
a/src/dhcp.c
b/src/dhcp.c
index
03a2b90
..
f1e3096
100644
(file)
--- 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);
}