From ef7452842d27c132e2976c8d5197166f2d7b354f Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 16 Oct 2012 12:12:56 +0200 Subject: [PATCH] input: Remove not needed adapters list in manager adapters list is not used for anything usefull. --- profiles/input/manager.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/profiles/input/manager.c b/profiles/input/manager.c index 3f6862029..a2690b567 100644 --- a/profiles/input/manager.c +++ b/profiles/input/manager.c @@ -44,8 +44,6 @@ 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); @@ -77,24 +75,13 @@ static void hid_device_remove(struct btd_profile *p, struct btd_device *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 = { -- 2.47.3