From patchwork Tue Mar 9 22:26:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 47188 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 41435B7D5A for ; Wed, 10 Mar 2010 09:31:52 +1100 (EST) Received: from localhost ([127.0.0.1]:37198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np7tc-0005li-Jj for incoming@patchwork.ozlabs.org; Tue, 09 Mar 2010 17:27:24 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np7t9-0005kz-Se for qemu-devel@nongnu.org; Tue, 09 Mar 2010 17:26:55 -0500 Received: from [199.232.76.173] (port=49487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np7t9-0005kj-JP for qemu-devel@nongnu.org; Tue, 09 Mar 2010 17:26:55 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Np7t8-0008No-3b for qemu-devel@nongnu.org; Tue, 09 Mar 2010 17:26:55 -0500 Received: from mx20.gnu.org ([199.232.41.8]:11428) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Np7t5-0008LB-Bh for qemu-devel@nongnu.org; Tue, 09 Mar 2010 17:26:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Np7sa-00049M-A8 for qemu-devel@nongnu.org; Tue, 09 Mar 2010 17:26:20 -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 o29MQEFV028752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Mar 2010 17:26:14 -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 o29MQ3Qd017445; Tue, 9 Mar 2010 17:26:12 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 9 Mar 2010 23:26:00 +0100 Message-Id: <66c57f11770e1acb7ebac39fe17a69f754c0f60b.1268173345.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 mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [Qemu-devel] [PATCH 6/9] 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..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; }