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-bt.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/usb-bt.c') diff --git a/hw/usb-bt.c b/hw/usb-bt.c index d7959ad..c0bfc35 100644 --- a/hw/usb-bt.c +++ b/hw/usb-bt.c @@ -413,10 +413,6 @@ static int usb_bt_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 v1.1