From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLIo-0007Sd-P7 for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpLIh-0004QS-Qy for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLIh-0004QI-KM for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:15 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0NEtEBc029245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Jan 2012 09:55:15 -0500 From: Gerd Hoffmann Date: Mon, 23 Jan 2012 15:54:49 +0100 Message-Id: <1327330511-16307-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1327330511-16307-1-git-send-email-kraxel@redhat.com> References: <1327330511-16307-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 03/25] usb: kill usb_send_msg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 e81c06d..a6eea99 100644 --- a/hw/usb.c +++ b/hw/usb.c @@ -299,19 +299,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 4f5a75a..b1afea3 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -349,7 +349,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); -- 1.7.1