summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2011-05-31 17:43:48 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2011-05-31 17:50:43 +0200
commitf61d7ecf8c2e0ae3e95f40cf23d0ce4bd4744f1b (patch)
treeec7c00e4f6e88d20b2b695c24a67289201ab8ee7
parent26a90cbb52c4b8ac4d82cc2f58045209da5a0ed8 (diff)
downloadconnman-f61d7ecf8c2e0ae3e95f40cf23d0ce4bd4744f1b.tar.gz
connman-f61d7ecf8c2e0ae3e95f40cf23d0ce4bd4744f1b.tar.bz2
connman-f61d7ecf8c2e0ae3e95f40cf23d0ce4bd4744f1b.zip
element: Remove unused CONNMAN_ELEMENT_ERROR_DHCP_FAILED
-rw-r--r--include/element.h1
-rw-r--r--src/element.c2
-rw-r--r--src/network.c3
3 files changed, 0 insertions, 6 deletions
diff --git a/include/element.h b/include/element.h
index b168b78a..1264fa95 100644
--- a/include/element.h
+++ b/include/element.h
@@ -56,7 +56,6 @@ enum connman_element_state {
enum connman_element_error {
CONNMAN_ELEMENT_ERROR_UNKNOWN = 0,
CONNMAN_ELEMENT_ERROR_FAILED = 1,
- CONNMAN_ELEMENT_ERROR_DHCP_FAILED = 2,
CONNMAN_ELEMENT_ERROR_CONNECT_FAILED = 3,
};
diff --git a/src/element.c b/src/element.c
index fe5226b0..af9bcdce 100644
--- a/src/element.c
+++ b/src/element.c
@@ -1195,8 +1195,6 @@ static enum connman_service_error convert_error(enum connman_element_error error
case CONNMAN_ELEMENT_ERROR_UNKNOWN:
case CONNMAN_ELEMENT_ERROR_FAILED:
break;
- case CONNMAN_ELEMENT_ERROR_DHCP_FAILED:
- return CONNMAN_SERVICE_ERROR_DHCP_FAILED;
case CONNMAN_ELEMENT_ERROR_CONNECT_FAILED:
return CONNMAN_SERVICE_ERROR_CONNECT_FAILED;
}
diff --git a/src/network.c b/src/network.c
index cea158ce..dca18aec 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1779,9 +1779,6 @@ static void network_change(struct connman_element *element)
if (element->state != CONNMAN_ELEMENT_STATE_ERROR)
return;
- if (element->error != CONNMAN_ELEMENT_ERROR_DHCP_FAILED)
- return;
-
if (network->connected == FALSE)
return;