Skip to content

Commit

Permalink
bt: remove bt_host_read_poll()
Browse files Browse the repository at this point in the history
It allways returned true, that is the equivalent of not having the
callback.

Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Juan Quintela authored and Anthony Liguori committed Mar 19, 2010
1 parent 7b27a76 commit ca96c31
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bt-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit ca96c31

Please sign in to comment.