summaryrefslogtreecommitdiff
path: root/src/technology.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@linux.intel.com>2012-01-05 14:41:11 +0200
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-09 16:07:37 +0100
commit1b35a1a8bd88f9b04a3daf646b666a369b73e4ac (patch)
tree396fd882084b974c95ff7df725b8ac11845c8eb4 /src/technology.c
parentca06438c3bd83d1a78269ccf50d613f6826cce8b (diff)
downloadconnman-1b35a1a8bd88f9b04a3daf646b666a369b73e4ac.tar.gz
connman-1b35a1a8bd88f9b04a3daf646b666a369b73e4ac.tar.bz2
connman-1b35a1a8bd88f9b04a3daf646b666a369b73e4ac.zip
technology: return a reply even if there are no devices in the technology list.
Diffstat (limited to 'src/technology.c')
-rw-r--r--src/technology.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/technology.c b/src/technology.c
index b595e934..0cec893b 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -892,8 +892,10 @@ int __connman_technology_enable(enum connman_service_type type, DBusMessage *msg
* An empty device list means that devices in the technology
* were rfkill blocked. The unblock above will enable the devs.
*/
- if (technology->device_list == NULL)
- return 0;
+ if (technology->device_list == NULL) {
+ ret = 0;
+ goto done;
+ }
for (list = technology->device_list; list; list = list->next) {
struct connman_device *device = list->data;