From 70fc20d4dc7c8990a508411db1ee441ae9ee5034 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 6 Jan 2012 15:31:38 +0100 Subject: [PATCH] usb: kill usb_send_msg No users left. Zap it. Signed-off-by: Gerd Hoffmann --- hw/usb.c | 13 ------------- hw/usb.h | 1 - 2 files changed, 14 deletions(-) diff --git a/hw/usb.c b/hw/usb.c index c8e6be4bc5..0c261644ec 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 b56e812d2c..61271768bc 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); -- 2.11.4.GIT