From patchwork Fri Feb 10 11:43:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 140623 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 92C45B6F98 for ; Sat, 11 Feb 2012 00:19:56 +1100 (EST) Received: from localhost ([::1]:43792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvouC-0000Ml-TK for incoming@patchwork.ozlabs.org; Fri, 10 Feb 2012 06:44:44 -0500 Received: from eggs.gnu.org ([140.186.70.92]:46491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvotD-0005xl-75 for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:43:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvot3-0000HC-TT for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:43:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvot3-0000Gu-Ht for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:43:33 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1ABhWJp012925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 10 Feb 2012 06:43:32 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q1ABhUcg019863; Fri, 10 Feb 2012 06:43:31 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 8C64341568; Fri, 10 Feb 2012 12:43:25 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Fri, 10 Feb 2012 12:43:02 +0100 Message-Id: <1328874204-20920-7-git-send-email-kraxel@redhat.com> In-Reply-To: <1328874204-20920-1-git-send-email-kraxel@redhat.com> References: <1328874204-20920-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 06/28] usb: kill usb_send_msg X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org No users left. Zap it. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 13 ------------- hw/usb.h | 1 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index c8e6be4..0c26164 100644 --- a/hw/usb.c +++ b/hw/usb.c @@ -295,19 +295,6 @@ int set_usb_string(uint8_t *buf, const char *str) return q - buf; } -/* Send an internal message to a USB device. */ -void usb_send_msg(USBDevice *dev, int msg) -{ - USBPacket p; - int ret; - - memset(&p, 0, sizeof(p)); - p.pid = msg; - ret = usb_handle_packet(dev, &p); - /* This _must_ be synchronous */ - assert(ret != USB_RET_ASYNC); -} - /* Hand over a packet to a device for processing. Return value USB_RET_ASYNC indicates the processing isn't finished yet, the driver will call usb_packet_complete() when done processing it. */ diff --git a/hw/usb.h b/hw/usb.h index b56e812..6127176 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -355,7 +355,6 @@ void usb_wakeup(USBDevice *dev); int usb_generic_handle_packet(USBDevice *s, USBPacket *p); void usb_generic_async_ctrl_complete(USBDevice *s, USBPacket *p); int set_usb_string(uint8_t *buf, const char *str); -void usb_send_msg(USBDevice *dev, int msg); /* usb-linux.c */ USBDevice *usb_host_device_open(const char *devname);