goto fail;
}
- ret = _bt_get_error_code(bluetooth_gatt_set_descriptor_value(desc->path,
- desc->value, desc->value_length));
-
- if (ret != BT_ERROR_NONE) {
- BT_ERR("%s(0x%08x)",
- _bt_convert_error_to_string(ret), ret);
- goto fail;
- }
}
}
- ret = _bt_get_error_code(bluetooth_gatt_register_service(svc->path));
-
- if (ret != BT_ERROR_NONE) {
- BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret);
- goto fail;
- }
-
serv->services = g_slist_append(serv->services, svc);
svc->parent = (void *)server;
}
}
+ ret = _bt_get_error_code(bluetooth_gatt_register_service(svc->path));
+
+ if (ret != BT_ERROR_NONE) {
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(ret), ret);
+ goto fail;
+ }
+
serv->services = g_slist_append(serv->services, svc);
svc->parent = (void *)server;