mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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 <kraxel@redhat.com>
This commit is contained in:
@@ -1076,11 +1076,6 @@ static int usb_net_handle_control(USBDevice *dev, int request, int value,
|
||||
ret = 0;
|
||||
break;
|
||||
|
||||
case DeviceOutRequest | USB_REQ_SET_ADDRESS:
|
||||
dev->addr = value;
|
||||
ret = 0;
|
||||
break;
|
||||
|
||||
case ClassInterfaceOutRequest | USB_CDC_SEND_ENCAPSULATED_COMMAND:
|
||||
if (!s->rndis || value || index != 0)
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user