From 41c6abbdeb5a86a135ee80a30541ecf52ffd3e23 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 26 Nov 2010 12:35:10 +0100 Subject: usb: move USB_REQ_SET_ADDRESS handling to common code USB_REQ_SET_ADDRESS handling is identical in *all* emulated devices. Move it to common code. Signed-off-by: Gerd Hoffmann --- hw/usb-hid.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/usb-hid.c') diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 74d17fc26f..72daddfe7d 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -695,10 +695,6 @@ static int usb_hid_handle_control(USBDevice *dev, int request, int value, } ret = 0; break; - case DeviceOutRequest | USB_REQ_SET_ADDRESS: - dev->addr = value; - ret = 0; - break; case DeviceRequest | USB_REQ_GET_CONFIGURATION: data[0] = 1; ret = 1; -- cgit 1.4.1