* [PATCH] Cleanup: 'features' in btd_adapter is no longer used.
@ 2011-06-16 22:13 Andre Guedes
2011-06-17 10:36 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Andre Guedes @ 2011-06-16 22:13 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andre Guedes
---
src/adapter.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/src/adapter.c b/src/adapter.c
index b189841..2650b56 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -135,8 +135,6 @@ struct btd_adapter {
guint scheduler_id; /* Scheduler handle */
sdp_list_t *services; /* Services associated to adapter */
- uint8_t features[8];
-
gboolean pairable; /* pairable state */
gboolean initialized;
@@ -2570,8 +2568,6 @@ void btd_adapter_unref(struct btd_adapter *adapter)
gboolean adapter_init(struct btd_adapter *adapter)
{
- int err;
-
/* adapter_ops makes sure that newly registered adapters always
* start off as powered */
adapter->up = TRUE;
@@ -2583,14 +2579,6 @@ gboolean adapter_init(struct btd_adapter *adapter)
return FALSE;
}
- err = adapter_ops->read_local_features(adapter->dev_id,
- adapter->features);
- if (err < 0) {
- error("Can't read features for hci%d: %s (%d)",
- adapter->dev_id, strerror(-err), -err);
- return FALSE;
- }
-
if (read_local_name(&adapter->bdaddr, adapter->name) < 0)
expand_name(adapter->name, MAX_NAME_LENGTH, main_opts.name,
adapter->dev_id);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Cleanup: 'features' in btd_adapter is no longer used.
2011-06-16 22:13 [PATCH] Cleanup: 'features' in btd_adapter is no longer used Andre Guedes
@ 2011-06-17 10:36 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-06-17 10:36 UTC (permalink / raw)
To: Andre Guedes; +Cc: linux-bluetooth
Hi André,
On Thu, Jun 16, 2011, Andre Guedes wrote:
> ---
> src/adapter.c | 12 ------------
> 1 files changed, 0 insertions(+), 12 deletions(-)
Applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-17 10:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16 22:13 [PATCH] Cleanup: 'features' in btd_adapter is no longer used Andre Guedes
2011-06-17 10:36 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).