From 5cfe640e882dca10acadb5ce2ea193dc5a5d2094 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 11 May 2011 15:28:43 +0200 Subject: [PATCH] Remove unused discoverable variable from mgmt_update_powered --- plugins/mgmtops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 9e1cfac7d..b831044b9 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -207,7 +207,7 @@ static int mgmt_update_powered(int index, uint8_t powered) { struct controller_info *info; struct btd_adapter *adapter; - gboolean pairable, discoverable; + gboolean pairable; uint8_t on_mode; if (index > max_index) { @@ -238,8 +238,6 @@ static int mgmt_update_powered(int index, uint8_t powered) btd_adapter_get_mode(adapter, NULL, &on_mode, &pairable); - discoverable = (on_mode == MODE_DISCOVERABLE); - if (on_mode == MODE_DISCOVERABLE && !info->discoverable) mgmt_set_discoverable(index, TRUE); else if (on_mode == MODE_CONNECTABLE && !info->connectable) -- 2.47.3