From patchwork Wed Mar 10 10:03:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 47218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C08ABB7CCD for ; Wed, 10 Mar 2010 21:20:39 +1100 (EST) Received: from localhost ([127.0.0.1]:43154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpIw2-0007CJ-Fs for incoming@patchwork.ozlabs.org; Wed, 10 Mar 2010 05:14:38 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpIlR-0003qT-9r for qemu-devel@nongnu.org; Wed, 10 Mar 2010 05:03:41 -0500 Received: from [199.232.76.173] (port=49326 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpIlQ-0003qC-CT for qemu-devel@nongnu.org; Wed, 10 Mar 2010 05:03:40 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NpIlN-0001rg-Od for qemu-devel@nongnu.org; Wed, 10 Mar 2010 05:03:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28410) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NpIlM-0001rM-NE for qemu-devel@nongnu.org; Wed, 10 Mar 2010 05:03:37 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2AA3ZWp011028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Mar 2010 05:03:35 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2AA3SbF017099; Wed, 10 Mar 2010 05:03:34 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 10 Mar 2010 11:03:18 +0100 Message-Id: <747661bc2f5298ba0522bee97d8f57fa127d8b9a.1268214633.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 04/14] bt: remove bt_host_read_poll() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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..33b2761 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; }