From patchwork Tue Mar 9 22:26:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6/9] bt: remove bt_host_read_poll() Date: Tue, 09 Mar 2010 12:26:00 -0000 From: Juan Quintela X-Patchwork-Id: 47188 Message-Id: <66c57f11770e1acb7ebac39fe17a69f754c0f60b.1268173345.git.quintela@redhat.com> To: qemu-devel@nongnu.org It allways returned true, that is the equivalent of not having the callback. Signed-off-by: Juan Quintela --- bt-host.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/bt-host.c b/bt-host.c index 964ac11..dcd302b 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_read_handler(s->fd, bt_host_read, s); return &s->hci; }