summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-16 12:12:56 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-16 13:32:50 +0300
commitef7452842d27c132e2976c8d5197166f2d7b354f (patch)
tree4112931dc01b7284d4b7ec2d01cd25386de82080 /profiles
parentc36d3d7dce24b6781e021719a709a547b8eef80a (diff)
input: Remove not needed adapters list in manager
adapters list is not used for anything usefull.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/input/manager.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/profiles/input/manager.c b/profiles/input/manager.c
index 3f686202..a2690b56 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 = {