aboutsummaryrefslogtreecommitdiff
path: root/bt-host.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-03-11 17:55:40 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-19 15:27:27 -0500
commitca96c316c0a10d7c673063f1bacb7d2c816cf38e (patch)
treeb9e126514cfbec37f49ba5b00fceeb70fc3b0f19 /bt-host.c
parent7b27a769f139102c906c8d11d844d51dce068a6a (diff)
bt: remove bt_host_read_poll()
It allways returned true, that is the equivalent of not having the callback. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'bt-host.c')
-rw-r--r--bt-host.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bt-host.c b/bt-host.c
index 964ac1163c..33b2761f21 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -80,13 +80,6 @@ static void bt_host_sco(struct HCIInfo *hci, const uint8_t *data, int len)
bt_host_send(hci, HCI_SCODATA_PKT, data, len);
}
-static int bt_host_read_poll(void *opaque)
-{
- struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque;
-
- return !!s->hci.evt_recv;
-}
-
static void bt_host_read(void *opaque)
{
struct bt_host_hci_s *s = (struct bt_host_hci_s *) opaque;
@@ -192,7 +185,7 @@ struct HCIInfo *bt_host_hci(const char *id)
s->hci.acl_send = bt_host_acl;
s->hci.bdaddr_set = bt_host_bdaddr_set;
- qemu_set_fd_handler2(s->fd, bt_host_read_poll, bt_host_read, NULL, s);
+ qemu_set_fd_handler(s->fd, bt_host_read, NULL, s);
return &s->hci;
}