diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index 3f68620..a2690b5 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
static int idle_timeout = 0;
-static GSList *adapters = NULL;
-
static void input_remove(struct btd_device *device, const char *uuid)
{
const gchar *path = device_get_path(device);
static int hid_server_probe(struct btd_profile *p, struct btd_adapter *adapter)
{
- int ret;
-
- ret = server_start(adapter_get_address(adapter));
- if (ret < 0)
- return ret;
-
- adapters = g_slist_append(adapters, btd_adapter_ref(adapter));
-
- return 0;
+ return server_start(adapter_get_address(adapter));
}
static void hid_server_remove(struct btd_profile *p,
struct btd_adapter *adapter)
{
server_stop(adapter_get_address(adapter));
-
- adapters = g_slist_remove(adapters, adapter);
- btd_adapter_unref(adapter);
}
static struct btd_profile input_profile = {